diff --git a/src/rpui/widgets/list_menu/renderer.d b/src/rpui/widgets/list_menu/renderer.d index e0bffca..0b0d3bd 100644 --- a/src/rpui/widgets/list_menu/renderer.d +++ b/src/rpui/widgets/list_menu/renderer.d @@ -23,25 +23,11 @@ final class ListMenuRenderer : Renderer { } override void onRender() { - renderBlock(theme, background, backgroundTransforms); - - // if (!widget.isBindDataMode) { - // widget.renderChildren(); - // } else { - // renderBindItems(); - // } + if (widget.isPopup) { + renderBlock(theme, background, backgroundTransforms); + } } - // private void renderBindItems() { - // stackLocator.startWidgetsPositioning(); - - // foreach (item; widget.bindItems) { - // auto widgetToRender = widget.children.front.associatedWidget; - // widget.visitBindItem(item, widgetToRender); - // widgetToRender.onRender(); - // } - // } - override void onProgress(in ProgressEvent event) { backgroundTransforms = updateBlockTransforms( background.widths,