When control view is reset, update the display view and the zoom palette

preferencesAboutTextFull
Craig Watson 8 years ago
parent 01e1248a98
commit e5b4de9013
  1. 4
      src/board/UBBoardController.cpp
  2. 1
      src/board/UBBoardPaletteManager.cpp
  3. 2
      src/gui/UBZoomPalette.h

@ -1688,8 +1688,10 @@ void UBBoardController::boardViewResized(QResizeEvent* event)
mControlView->centerOn(0,0);
if (mDisplayView)
if (mDisplayView) {
UBApplication::applicationController->adjustDisplayView();
mDisplayView->centerOn(0,0);
}
mPaletteManager->containerResized();

@ -497,6 +497,7 @@ void UBBoardPaletteManager::containerResized()
mZoomPalette->move(userLeft + userWidth - mZoomPalette->width()
, userTop + userHeight /*- mPageNumberPalette->height()*/ - innerMargin - mZoomPalette->height());
mZoomPalette->adjustSizeAndPosition();
mZoomPalette->refreshPalette();
}
if (isFirstResized && mKeyboardPalette && mKeyboardPalette->parent() == UBApplication::boardController->controlContainer())

@ -45,6 +45,7 @@ class UBZoomPalette : public UBFloatingPalette
public slots:
void hide();
void refreshPalette();
private:
UBBoardController* mBoardController;
@ -55,7 +56,6 @@ class UBZoomPalette : public UBFloatingPalette
bool mIsExpanded;
private slots:
void refreshPalette();
void showHideExtraButton();
void goHundred();

Loading…
Cancel
Save