Skip to content

Commit

Permalink
fixup! SelectionToolUI : Fix size flicker on tool change
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Mar 21, 2024
1 parent 65ea3da commit 521ea42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions python/GafferSceneUI/SelectionToolUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ class _LeftSpacer( GafferUI.Spacer ) :

def __init__( self, imageView, **kw ) :

# Height based on the height of `TransformToolUI._SelectionWidget`. Without this shim,
# there's a flicker in the alignment when switching back and forth from the Selection Tool
# and a Transform Tool such as Rotate Tool.
GafferUI.Spacer.__init__( self, size = imath.V2i( 40, 27 ), maximumSize = imath.V2i( 40, 27 ) )
GafferUI.Spacer.__init__( self, size = imath.V2i( 40, 1 ), maximumSize = imath.V2i( 40, 1 ) )

class _RightSpacer( GafferUI.Spacer ) :

Expand Down
2 changes: 1 addition & 1 deletion python/GafferSceneUI/TransformToolUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class _SelectionWidget( GafferUI.Frame ) :

def __init__( self, tool, **kw ) :

GafferUI.Frame.__init__( self, borderWidth = 4, **kw )
GafferUI.Frame.__init__( self, borderWidth = 1, **kw )

self.__tool = tool

Expand Down

0 comments on commit 521ea42

Please sign in to comment.