Skip to content

Commit 4c2efb7

Browse files
authored
Merge pull request #281 from DoomTas3r/preview-block-scale
Scale preview block
2 parents 30514af + cbffdb6 commit 4c2efb7

File tree

1 file changed

+1
-1
lines changed
  • addons/block_code/drag_manager

1 file changed

+1
-1
lines changed

addons/block_code/drag_manager/drag.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func _update_preview():
194194
_preview_block = Background.new()
195195

196196
_preview_block.color = Color(1, 1, 1, 0.5)
197-
_preview_block.custom_minimum_size = _block.get_global_rect().size
197+
_preview_block.custom_minimum_size = _block.get_global_rect().size / scale
198198
_preview_block.size_flags_horizontal = Control.SIZE_SHRINK_BEGIN
199199
_preview_block.size_flags_vertical = Control.SIZE_SHRINK_BEGIN
200200

0 commit comments

Comments
 (0)