Skip to content

Commit

Permalink
insertGraphicsDlg: prevent elements from moving (texstudio-org#3509)
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder authored Feb 10, 2024
1 parent 7922859 commit 5321280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/insertgraphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,13 @@ void InsertGraphics::updateLabel(const QString &fname)
void InsertGraphics::togglePlacementCheckboxes(bool forceHide)
{
if (ui.placementCheckboxes->isVisible() || forceHide) {
ui.placementCheckboxes->hide();
ui.pbPlaceExpand->setIcon(getRealIcon("down-arrow-circle-silver"));
resize(width(), height() - (ui.placementCheckboxes->height() + ui.gridLayout->verticalSpacing()));
resize(width(), height() - (ui.placementCheckboxes->height() - ui.gridLayout->verticalSpacing()));
ui.placementCheckboxes->hide();
} else {
resize(width(), height() + (ui.placementCheckboxes->height() + ui.gridLayout->verticalSpacing()));
ui.pbPlaceExpand->setIcon(getRealIcon("up-arrow-circle-silver"));
ui.placementCheckboxes->show();
resize(width(), height() + (ui.placementCheckboxes->height() - ui.gridLayout->verticalSpacing()));
}
}

Expand Down

0 comments on commit 5321280

Please sign in to comment.