Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
victorb is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: splitter bounds
Next Topic: splitter and WhenAction
Goto Forum:
  


Current Time: Mon May 13 19:10:43 CEST 2024

Total time taken to generate the page: 0.03308 seconds