Skip to content

Commit

Permalink
GraphEditor : Fix annotations button alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Aug 8, 2024
1 parent 4ab1175 commit f600f3e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions python/GafferUI/GraphEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ def __init__( self, scriptNode, **kw ) :
self.__gadgetWidget.getViewportGadget().preRenderSignal().connect( Gaffer.WeakMethod( self.__preRender ), scoped = False )

with GafferUI.ListContainer( borderWidth = 8, spacing = 0 ) as overlay :
with GafferUI.ListContainer(
GafferUI.ListContainer.Orientation.Horizontal,
parenting = {
"verticalAlignment" : GafferUI.VerticalAlignment.Top,
}
) :
with GafferUI.ListContainer( GafferUI.ListContainer.Orientation.Horizontal ) :
GafferUI.Spacer( imath.V2i( 1 ) )
GafferUI.MenuButton(
image = "annotations.png", hasFrame = False,
Expand All @@ -88,6 +83,7 @@ def __init__( self, scriptNode, **kw ) :
title = "Annotations"
)
)
GafferUI.Spacer( imath.V2i( 1 ) )

self.__gadgetWidget.addOverlay( overlay )

Expand Down

0 comments on commit f600f3e

Please sign in to comment.