Home » U++ Library support » Splitter » Splitter::SetMinPixels() bug+fix
Splitter::SetMinPixels() bug+fix [message #24038] |
Mon, 21 December 2009 13:11 |
Tom1
Messages: 1251 Registered: March 2007
|
Senior Contributor |
|
|
Hi,
Splitter::SetMinPixels() fails set the minimum control size correctly in pixels when the splitter is configured to work in vertical mode. The fixed Splitter::GetMins() correcting the problem is here:
int Splitter::GetMins(int i) const
{
int min1 = (i < mins.GetCount() ? mins[i] : 0);
int min2 = 0;
int cx = IsVert()?GetSize().cy:GetSize().cx;
if(cx)
min2 = (i < minpx.GetCount() ? minpx[i] : 0) * 10000 / cx;
return max(min1, min2);
}
Best regards,
Tom
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:19:05 CET 2024
Total time taken to generate the page: 0.02230 seconds
|