bugfix: return 'height' if container is rotated vertically, closes #3195728
iconbar.iconWidth property was ignored due this bug.
This commit is contained in:
parent
40f8c35084
commit
b1d70e2c92
1 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@ void IconbarTool::move(int x, int y) {
|
||||||
|
|
||||||
void IconbarTool::resize(unsigned int width, unsigned int height) {
|
void IconbarTool::resize(unsigned int width, unsigned int height) {
|
||||||
m_icon_container.resize(width, height);
|
m_icon_container.resize(width, height);
|
||||||
m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() ? width : height);
|
m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() == FbTk::ROT180 ? width : height);
|
||||||
renderTheme();
|
renderTheme();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -315,7 +315,7 @@ void IconbarTool::moveResize(int x, int y,
|
||||||
unsigned int width, unsigned int height) {
|
unsigned int width, unsigned int height) {
|
||||||
|
|
||||||
m_icon_container.moveResize(x, y, width, height);
|
m_icon_container.moveResize(x, y, width, height);
|
||||||
m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() ? width : height);
|
m_icon_container.setMaxTotalSize(m_icon_container.orientation() == FbTk::ROT0 || m_icon_container.orientation() == FbTk::ROT180 ? width : height);
|
||||||
renderTheme();
|
renderTheme();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue