Add support to resize the pinned popup frames.

This commit is contained in:
David Capello 2011-04-02 20:43:31 -03:00
parent 0bcb44c491
commit 536d67566f

View File

@ -82,6 +82,13 @@ void PopupFramePin::onHitTest(HitTestEvent& ev)
{
PopupFrame::onHitTest(ev);
if (m_pin.isSelected() && ev.getHit() == HitTestClient)
ev.setHit(HitTestCaption);
if (m_pin.isSelected() &&
ev.getHit() == HitTestClient) {
if (ev.getPoint().x <= rc->x1+2)
ev.setHit(HitTestBorderW);
else if (ev.getPoint().x >= rc->x2-3)
ev.setHit(HitTestBorderE);
else
ev.setHit(HitTestCaption);
}
}