05-31-2017, 01:01 AM
I've made some changes to PanelSample project to show this issue.
In postStartup I've changed panel creation lines to this
And added resize callback
With this if you drag it by right edge fast(not corner, dragging by corner works fine), save button will show this behaviour
In postStartup I've changed panel creation lines to this
Code:
this->__docPanel = hdi::core::Panel(
"Current Doc Data", // Panel title
hdi::core::Size(hdi::core::Panel::typicalWidth, 140.0), // Panel size
true, // Width is not resizeable
true // Height is not resizeable
);
this->__docPanel.setResizeCallback(HDI_CORE_CALLBACK(panel::Plugin, this, ResizeCallback));
And added resize callback
Code:
oid panel::Plugin::ResizeCallback()
{
float w = this->__docPanel.frame().size.width;
float h = this->__docPanel.frame().size.height;
hdi::core::Point p(w - 50, 5);
this->__docPanelSaveButton.setOrigin(p);
}
With this if you drag it by right edge fast(not corner, dragging by corner works fine), save button will show this behaviour