From 23c752b4f8e4fb87c4428573c62e3f13465e70e7 Mon Sep 17 00:00:00 2001 From: Andrey Kabylin Date: Sat, 13 Jul 2019 12:25:40 +0700 Subject: [PATCH] clean up --- src/rpui/widgets/list_menu/renderer.d | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) 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,