summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-12 23:17:01 +0100
committerGitHub <noreply@github.com>2019-11-12 23:17:01 +0100
commitda4079f231acf9aeee3487e831fbf8cb3bceb6ed (patch)
treeaa2dca2698a0318cbecbe4d70a53f5266d5700ab
parentfa45fdb5f5d8435b49303ef36b33241f278b33de (diff)
parent1369e0097340204104b2ffb522c756bde5301508 (diff)
Merge pull request #33575 from KoBeWi/zoomset
Properly handle zoom when opening tileset editor
-rw-r--r--editor/plugins/tile_set_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp
index cc4c21cc04..a8cf5b46e1 100644
--- a/editor/plugins/tile_set_editor_plugin.cpp
+++ b/editor/plugins/tile_set_editor_plugin.cpp
@@ -3235,8 +3235,8 @@ void TileSetEditor::update_workspace_minsize() {
delete tiles;
workspace->set_custom_minimum_size(workspace_min_size + WORKSPACE_MARGIN * 2);
- workspace_container->set_custom_minimum_size(workspace_min_size + WORKSPACE_MARGIN * 2);
- workspace_overlay->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->get_scale() + WORKSPACE_MARGIN * 2);
}
void TileSetEditor::update_edited_region(const Vector2 &end_point) {