Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit d33efaf

Browse files
authored
[Bug 21585] Fix graphics size in PI -> Effects
This fix references a stable size (button 1) instead of the rect of the group. This gives consistent heights of graphics when resizing or lock/unlocking PI
1 parent 8f2dee9 commit d33efaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Toolset/palettes/inspector/editors/com.livecode.pi.graphiceffect.behavior.livecodescript

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ on editorResize
119119

120120
local tRect
121121
put the rect of me into tRect
122-
set the rect of graphic 1 of me to the right of button 1 of me, item 2 of tRect + 2, item 3 of tRect - 5, item 4 of tRect - 5
122+
set the rect of graphic 1 of me to the right of button 1 of me, \
123+
the top of button 1 of me + 3, item 3 of tRect - 5, \
124+
the bottom of button 1 of me - 3
123125
unlock messages
124126
unlock screen
125127
end editorResize

0 commit comments

Comments
 (0)