Scroll so focused element is always visible
This commit is contained in:
parent
9f507b5b9e
commit
70bbc3a69a
3 changed files with 4 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ decorateExpand True widget = withDefAttr "expand" widget
|
|||
decorateExpand False widget = withDefAttr "noexpand" widget
|
||||
|
||||
decorateFocus :: Bool -> Widget n -> Widget n
|
||||
decorateFocus True widget = withDefAttr "focus" widget
|
||||
decorateFocus True widget = visible $ withDefAttr "focus" widget
|
||||
decorateFocus False widget = withDefAttr "nofocus" widget
|
||||
|
||||
decorateFlags :: Node -> Widget n -> Widget n
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@ module Forest.Client.ResourceName
|
|||
( ResourceName(..)
|
||||
) where
|
||||
|
||||
data ResourceName = RnEditor
|
||||
data ResourceName = RnViewport | RnEditor
|
||||
deriving (Show, Eq, Ord)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue