Skip to content

Less resize on splitters changes#346

Merged
fantaisie-software merged 2 commits intofantaisie-software:develfrom
ChrisRfr:Less_Rresize_on_Splitters_changes
Mar 25, 2026
Merged

Less resize on splitters changes#346
fantaisie-software merged 2 commits intofantaisie-software:develfrom
ChrisRfr:Less_Rresize_on_Splitters_changes

Conversation

@ChrisRfr
Copy link
Copy Markdown
Contributor

@ChrisRfr ChrisRfr commented Jan 29, 2026

UpdateSourceContainer() on splitters changes only if there is a real change in the splitters positions. For fewer processes, resizing, redraw.

However, wouldn't it be better if, in the Gadget Library, only Splitter events with a real state change (position) were processed?
Moving the mouse Horizontally over a Horizontal Splitter does nothing and is useless, it shouldn't send an event (resize > redraw for us). And vice versa for the Vertical Splitter

UpdateSourceContainer() on splitters changes only if there is a real change in the splitters positions.  For fewer processes, resizing, redraw.

However, wouldn't it be better if, in the Gadget Library, only Splitter events with a real change of status (position) were processed?
Copy link
Copy Markdown
Owner

@fantaisie-software fantaisie-software left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, could you remove the Debug statements ?

I don't think we will patch the splitter gadget as introducing a cache could lead to other issues (I tried and it failed in a few cases)

Remove the Debug statements who was there just to help test it.
Thanks for the explanation of the Splitter events.
@ChrisRfr
Copy link
Copy Markdown
Contributor Author

I've removed the debugging statements that were only there to make testing easier.
Thank you for your explanation on the Splitter events.

@fantaisie-software fantaisie-software merged commit a05fcdd into fantaisie-software:devel Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants