Merge pull request #33575 from KoBeWi/zoomset

Properly handle zoom when opening tileset editor
This commit is contained in:
Rémi Verschelde 2019-11-12 23:17:01 +01:00 committed by GitHub
commit da4079f231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3235,8 +3235,8 @@ void TileSetEditor::update_workspace_minsize() {
delete tiles; delete tiles;
workspace->set_custom_minimum_size(workspace_min_size + WORKSPACE_MARGIN * 2); workspace->set_custom_minimum_size(workspace_min_size + WORKSPACE_MARGIN * 2);
workspace_container->set_custom_minimum_size(workspace_min_size + WORKSPACE_MARGIN * 2); workspace_container->set_custom_minimum_size(workspace_min_size * workspace->get_scale() + WORKSPACE_MARGIN * 2);
workspace_overlay->set_custom_minimum_size(workspace_min_size + WORKSPACE_MARGIN * 2); workspace_overlay->set_custom_minimum_size(workspace_min_size * workspace->get_scale() + WORKSPACE_MARGIN * 2);
} }
void TileSetEditor::update_edited_region(const Vector2 &end_point) { void TileSetEditor::update_edited_region(const Vector2 &end_point) {