Recalculate dimensions on resize

This commit is contained in:
Matthias Neeracher 2007-01-12 09:03:49 +00:00
parent 548c129d15
commit 4c5f4dbd60

View File

@ -254,10 +254,6 @@ VLMusicElement sSemi2Accidental[12][12] = {
NSScrollView * scroll = [self enclosingScrollView]; NSScrollView * scroll = [self enclosingScrollView];
NSSize sz = [scroll contentSize]; NSSize sz = [scroll contentSize];
#if 0
sz.width *= fDisplayScale;
sz.height *= fDisplayScale;
#endif
const VLSong * song = [self song]; const VLSong * song = [self song];
const VLProperties & prop = song->fProperties.front(); const VLProperties & prop = song->fProperties.front();
@ -490,7 +486,7 @@ VLMusicElement sSemi2Accidental[12][12] = {
- (void)drawRect:(NSRect)rect - (void)drawRect:(NSRect)rect
{ {
if (fNeedsRecalc) if (fNeedsRecalc || [self inLiveResize])
[self recalculateDimensions]; [self recalculateDimensions];
size_t stanzas = [self song]->CountStanzas(); size_t stanzas = [self song]->CountStanzas();