From fda86165b0da0ea1609e0b330618969f9bdba120 Mon Sep 17 00:00:00 2001 From: Falko Schindler Date: Fri, 30 Aug 2024 22:20:31 +0200 Subject: [PATCH] tiny layout fix --- website/documentation/content/scene_documentation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/documentation/content/scene_documentation.py b/website/documentation/content/scene_documentation.py index 43da29277..b3586e7a1 100644 --- a/website/documentation/content/scene_documentation.py +++ b/website/documentation/content/scene_documentation.py @@ -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()