From 3a55714cd3926f17edc162ef0a47082305e3494d Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Tue, 6 Sep 2011 00:22:38 +0200 Subject: [PATCH] Fix initial recalculation --- Sources/VLSheetView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/VLSheetView.mm b/Sources/VLSheetView.mm index dd31165..338f88e 100644 --- a/Sources/VLSheetView.mm +++ b/Sources/VLSheetView.mm @@ -262,7 +262,7 @@ static float sFlatPos[] = { delete fLayout; fLayout = new VLLayout(*[self song], sz.width / fDisplayScale); - sz.height = std::max(2, fLayout->NumSystems())*kSystemH*fDisplayScale; + sz.height = std::max(2.0f, fLayout->NumSystems()+0.25f)*kSystemH*fDisplayScale; NSSize boundsSz = {sz.width / fDisplayScale, sz.height / fDisplayScale}; @@ -947,6 +947,7 @@ const float kSemiFloor = -1.0f*kLineH; [self updateMenus]; [self recalculateDimensions]; + fNeedsRecalc = kFirstRecalc; } - (void)removeObservers:(id)target