From 4c5f4dbd6034e3479833ca43f59a2df610eb7bb4 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Fri, 12 Jan 2007 09:03:49 +0000 Subject: [PATCH] Recalculate dimensions on resize --- Sources/VLSheetView.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Sources/VLSheetView.mm b/Sources/VLSheetView.mm index fb7a252..522aff4 100644 --- a/Sources/VLSheetView.mm +++ b/Sources/VLSheetView.mm @@ -254,10 +254,6 @@ VLMusicElement sSemi2Accidental[12][12] = { NSScrollView * scroll = [self enclosingScrollView]; NSSize sz = [scroll contentSize]; -#if 0 - sz.width *= fDisplayScale; - sz.height *= fDisplayScale; -#endif const VLSong * song = [self song]; const VLProperties & prop = song->fProperties.front(); @@ -490,7 +486,7 @@ VLMusicElement sSemi2Accidental[12][12] = { - (void)drawRect:(NSRect)rect { - if (fNeedsRecalc) + if (fNeedsRecalc || [self inLiveResize]) [self recalculateDimensions]; size_t stanzas = [self song]->CountStanzas();