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); mControlView->centerOn(0,0);
if (mDisplayView) if (mDisplayView) {
UBApplication::applicationController->adjustDisplayView();
mDisplayView->centerOn(0,0); mDisplayView->centerOn(0,0);
}
mPaletteManager->containerResized(); mPaletteManager->containerResized();

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

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

Loading…
Cancel
Save