Skip to content

Commit

Permalink
tiny layout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Aug 30, 2024
1 parent b87eafd commit fda8616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/documentation/content/scene_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def handle_drag(e: events.SceneDragEventArguments):
def immediate_updates() -> None:
from nicegui import events

with ui.scene(drag_constraints='z=0') as scene:
with ui.scene(width=285, drag_constraints='z=0') as scene:
box = scene.box(1, 1, 0.2).move(0, 0).material('Orange')
sphere1 = scene.sphere(0.2).move(0.5, -0.5).material('SteelBlue').draggable()
sphere2 = scene.sphere(0.2).move(-0.5, 0.5).material('SteelBlue').draggable()
Expand Down

0 comments on commit fda8616

Please sign in to comment.