Skip to content

Commit

Permalink
updating directory textblock clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
ganimtron-10 committed Aug 20, 2023
1 parent 9c5f0a7 commit b95871b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fury/ui/elements.py
Expand Up @@ -3377,6 +3377,7 @@ def _setup(self):
background_opacity=self.background_opacity)
self.dir_block = TextBlock2D(text=self.current_directory,
size=self.dir_block_size)
clip_overflow(self.dir_block, self.dir_block_size[0])
self.accept_button = TextBlock2D(size=self.accept_button_size,
text=self.dialog_type.title(),
color=(1, 1, 1))
Expand Down Expand Up @@ -3465,6 +3466,7 @@ def _get_size(self):

def dir_click_callback(self, i_ren, _obj, listboxitem):
self.dir_block.message = self.current_directory
clip_overflow(self.dir_block, self.size[0])
i_ren.force_render()
i_ren.event.abort()

Expand Down

0 comments on commit b95871b

Please sign in to comment.