fix slit onhead with BOTTOMLEFT placement, patch from Tomas Janousek <tomi at nomi dot cz>
This commit is contained in:
parent
3980e3c40a
commit
d267acc8e0
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 1.0.0:
|
Changes for 1.0.0:
|
||||||
|
*07/04/20:
|
||||||
|
* Fix slit.onhead with BOTTOMLEFT placement.(Thanks Tomas Janousek <tomi@nomi.cz>)
|
||||||
|
Slit.cc
|
||||||
*07/04/19:
|
*07/04/19:
|
||||||
* Fixed crash when CustomMenu command doesn't point to a file (Mark)
|
* Fixed crash when CustomMenu command doesn't point to a file (Mark)
|
||||||
FbCommands.cc
|
FbCommands.cc
|
||||||
|
|
|
@ -847,7 +847,7 @@ void Slit::reposition() {
|
||||||
|
|
||||||
case BOTTOMLEFT:
|
case BOTTOMLEFT:
|
||||||
frame.x = head_x;
|
frame.x = head_x;
|
||||||
frame.y = head_h - frame.height - border_width*2;
|
frame.y = head_y + head_h - frame.height - border_width*2;
|
||||||
if (direction() == VERTICAL) {
|
if (direction() == VERTICAL) {
|
||||||
frame.x_hidden = head_x + bevel_width -
|
frame.x_hidden = head_x + bevel_width -
|
||||||
border_width - frame.width;
|
border_width - frame.width;
|
||||||
|
|
Loading…
Reference in a new issue