From 2ac611f645f07985fd5a75cd58b85182438c71a1 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Wed, 27 Jan 2016 10:52:06 +0300 Subject: [PATCH] allow editing project json - close #116 --- src/dlangide.d | 2 +- src/dlangide/ui/dsourceedit.d | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dlangide.d b/src/dlangide.d index e919680..d59e5b4 100644 --- a/src/dlangide.d +++ b/src/dlangide.d @@ -63,7 +63,7 @@ extern (C) int UIAppMain(string[] args) { //} // create window - Window window = Platform.instance.createWindow("Dlang IDE", null, WindowFlag.Resizable, 1000, 800); + Window window = Platform.instance.createWindow("Dlang IDE", null, WindowFlag.Resizable, 1000, 750); // set window icon window.windowIcon = drawableCache.getImage("dlangui-logo1"); diff --git a/src/dlangide/ui/dsourceedit.d b/src/dlangide/ui/dsourceedit.d index 02b4d9a..c23a469 100644 --- a/src/dlangide/ui/dsourceedit.d +++ b/src/dlangide/ui/dsourceedit.d @@ -456,12 +456,12 @@ class DSourceEdit : SourceEdit, EditableContentMarksChangeListener { widget.text = text.dup; //widget.layoutHeight = lineCount * widget.fontSize; widget.minHeight = (lineCount + 1) * widget.fontSize; - widget.maxWidth = width / 2; + widget.maxWidth = width * 3 / 4; widget.minWidth = width / 8; // widget.layoutWidth = width / 3; widget.styleId = "POPUP_MENU"; - widget.hscrollbarMode = ScrollBarMode.Invisible; - widget.vscrollbarMode = ScrollBarMode.Invisible; + widget.hscrollbarMode = ScrollBarMode.Auto; + widget.vscrollbarMode = ScrollBarMode.Auto; uint pos = PopupAlign.Above; if (pt.y < top + height / 4) pos = PopupAlign.Below;