From e12c99f61d36151ea3a5a96f785d9ae2caece328 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 25 Apr 2010 23:14:13 -0300 Subject: [PATCH] Avoid to reserve caption space in popup windows that do not have a caption. --- src/jinete/jpopup_window.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/jinete/jpopup_window.cpp b/src/jinete/jpopup_window.cpp index 46fc77bc4..913648b90 100644 --- a/src/jinete/jpopup_window.cpp +++ b/src/jinete/jpopup_window.cpp @@ -143,10 +143,12 @@ bool PopupWindow::msg_proc(JMessage msg) this->border_width.t = 3 * jguiscale(); this->border_width.r = 3 * jguiscale(); this->border_width.b = 3 * jguiscale(); + + if (hasText()) { + _ji_theme_textbox_draw(NULL, this, &w, &h, 0, 0); - _ji_theme_textbox_draw(NULL, this, &w, &h, 0, 0); - - this->border_width.t = h - 3 * jguiscale(); + this->border_width.t = h - 3 * jguiscale(); + } /* setup the background color */ jwidget_set_bg_color(this, makecol(255, 255, 200));