Project

General

Profile

Bug #7396 » panel_resize_sensor.patch

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

View differences:

src/Wt/WPanel.C
*
* See the LICENSE file for terms of use.
*/
#include "ResizeSensor.h"
#include <Wt/WApplication.h>
#include <Wt/WContainerWidget.h>
......
"" WT_CLASS ".px(self, 'borderBottomWidth');"
"""}"
"""var c = self.lastChild;"
"""if (c.className=='resize-sensor')"
"" "c = c.previousSibling;"
"""var t = c.previousSibling;"
"""if (t)"
"" "h -= t.offsetHeight;"
......
"};");
setJavaScriptMember(WT_GETPS_JS, StdWidgetItemImpl::secondGetPSJS());
ResizeSensor::applyIfNeeded(this);
}
void WPanel::setTitle(const WString& title)
(2-2/4)