Skip to content

Commit

Permalink
Merge pull request #706 from CesiumGS/add-ui-scrollbar
Browse files Browse the repository at this point in the history
Add scrollbar to Main UI and Powertools UI
  • Loading branch information
lilleyse authored Mar 27, 2024
2 parents 9f6d187 + e708655 commit b739874
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 6 additions & 2 deletions exts/cesium.omniverse/cesium/omniverse/ui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,12 @@ def _build_fn(self):
clicked_fn=self._sign_out_button_clicked,
enabled=False,
)
self._quick_add_widget = CesiumOmniverseQuickAddWidget(self._cesium_omniverse_interface)
self._sign_in_widget = CesiumOmniverseSignInWidget(self._cesium_omniverse_interface, visible=False)
with ui.ScrollingFrame():
with ui.VStack(spacing=0):
self._quick_add_widget = CesiumOmniverseQuickAddWidget(self._cesium_omniverse_interface)
self._sign_in_widget = CesiumOmniverseSignInWidget(
self._cesium_omniverse_interface, visible=False
)

def _add_button_clicked(self) -> None:
if not self._add_button or not self._add_button.enabled:
Expand Down
7 changes: 4 additions & 3 deletions exts/cesium.powertools/cesium/powertools/powertools_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def destroy(self) -> None:
super().destroy()

def _build_fn(self):
with ui.VStack(spacing=4):
for action in self._actions:
action.button()
with ui.ScrollingFrame():
with ui.VStack(spacing=4):
for action in self._actions:
action.button()

0 comments on commit b739874

Please sign in to comment.