Bug #7396 » panel_resize_sensor.patch
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)
|