Always fill scroll view

This commit is contained in:
Matthias Neeracher 2012-05-20 00:16:40 +02:00
parent b25af52bb2
commit fc5873c2d2

View File

@ -296,7 +296,7 @@ static float sFlatPos[] = {
delete fLayout; delete fLayout;
fLayout = new VLLayout(*[self song], sz.width / fDisplayScale); fLayout = new VLLayout(*[self song], sz.width / fDisplayScale);
sz.height = std::max(2.0f, fLayout->NumSystems()+0.25f)*kSystemH*fDisplayScale; sz.height = std::max<float>(sz.height, std::max(2.0f, fLayout->NumSystems()+0.25f)*kSystemH*fDisplayScale);
NSSize boundsSz = {sz.width / fDisplayScale, sz.height / fDisplayScale}; NSSize boundsSz = {sz.width / fDisplayScale, sz.height / fDisplayScale};