Home » U++ Library support » Splitter » Issue with SplitterFrame
Issue with SplitterFrame [message #8597] |
Tue, 20 March 2007 16:39  |
victorb
Messages: 78 Registered: December 2005 Location: Nice, France
|
Member |
|
|
It seems that there is an issue with SplitterFrame.
It can be observed with the SplitterFrame reference code.
If you move the splitter to the right most position of the window, the window becomes all black.
If you you the splitter to the left most position there is also an issue with the ScrollBar of the list.
Would it be possible to implement minimum sizes for both sides of the splitterFrame ?
>>EDIT
I mean is it technically possible ?
If yes I can try.
>>EDIT
Thanks,
Victor
[Updated on: Tue, 20 March 2007 18:59] Report message to a moderator
|
|
|
|
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: Tue Apr 29 11:10:29 CEST 2025
Total time taken to generate the page: 0.01537 seconds
|