fix: resizing of palettes in UBBoardPaletteManager

preferencesAboutTextFull
letsfindaway 3 years ago
parent 8803239d84
commit f7974f0b33
  1. 10
      src/board/UBBoardPaletteManager.cpp

@ -512,16 +512,18 @@ void UBBoardPaletteManager::containerResized()
mKeyboardPalette->adjustSizeAndPosition(); mKeyboardPalette->adjustSizeAndPosition();
} }
if(mLeftPalette) // NOTE @letsfindaway Fixed, but don't see any reason for this.
// Probably remove.
if(mLeftPalette && mLeftPalette->width() > 0)
{ {
mLeftPalette->resize(mLeftPalette->width()-1, mContainer->height()); mLeftPalette->resize(mLeftPalette->width()-1, mContainer->height());
mLeftPalette->resize(mLeftPalette->width(), mContainer->height()); mLeftPalette->resize(mLeftPalette->width()+1, mContainer->height());
} }
if(mRightPalette) if(mRightPalette && mRightPalette->width() > 0)
{ {
mRightPalette->resize(mRightPalette->width()-1, mContainer->height()); mRightPalette->resize(mRightPalette->width()-1, mContainer->height());
mRightPalette->resize(mRightPalette->width(), mContainer->height()); mRightPalette->resize(mRightPalette->width()+1, mContainer->height());
} }
} }

Loading…
Cancel
Save