Home » U++ Library support » Splitter » Issue with SplitterFrame
Re: Issue with SplitterFrame [message #8629 is a reply to message #8603] |
Wed, 21 March 2007 23:12 |
victorb
Messages: 78 Registered: December 2005 Location: Nice, France
|
Member |
|
|
Mirek,
I have just sync'ed with uvs and it seems that the MinSize / SizeMin does not fully work as expected.
The issue is when the window is resized. There sizemin in not taken into account and you can still reduce to a lower value. Now when you press the splitter again... it jumps to where it should be.
The fix is as simple as adding one line:
void SplitterFrame::FrameLayout(Rect& r) {
..
..
..
size = minmax(size, minsize, maxsize);
}
Note that you still have to set the parent size to something > minsize+sizemin if you don't want to go below minsize when resizing the parent.
[Updated on: Wed, 21 March 2007 23:13] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jun 16 15:10:08 CEST 2024
Total time taken to generate the page: 0.02364 seconds
|