Project

General

Profile

Bug #7396 » panel_resize_sensor.patch

Roel Standaert, 01/27/2020 03:21 PM

View differences:

src/Wt/WPanel.C
3 3
 *
4 4
 * See the LICENSE file for terms of use.
5 5
 */
6
#include "ResizeSensor.h"
6 7

  
7 8
#include <Wt/WApplication.h>
8 9
#include <Wt/WContainerWidget.h>
......
52 53
     ""       WT_CLASS ".px(self, 'borderBottomWidth');"
53 54
     """}"
54 55
     """var c = self.lastChild;"
56
     """if (c.className=='resize-sensor')"
57
     ""  "c = c.previousSibling;"
55 58
     """var t = c.previousSibling;"
56 59
     """if (t)"
57 60
     ""  "h -= t.offsetHeight;"
......
78 81
     "};");
79 82

  
80 83
  setJavaScriptMember(WT_GETPS_JS, StdWidgetItemImpl::secondGetPSJS());
84

  
85
  ResizeSensor::applyIfNeeded(this);
81 86
}
82 87

  
83 88
void WPanel::setTitle(const WString& title)
(2-2/4)