Changeset e1f5fb19 in mainline
- Timestamp:
- 2023-04-14T12:56:27Z (19 months ago)
- Children:
- 89bca606
- Parents:
- 2a230b6
- git-author:
- SimonJRiddix <69309548+simonjriddix@…> (2023-04-14 12:56:27)
- git-committer:
- GitHub <noreply@…> (2023-04-14 12:56:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/window.c
r2a230b6 re1f5fb19 1 1 /* 2 2 * Copyright (c) 2023 Jiri Svoboda 3 * Copyright (c) 2023 SimonJRiddix 3 4 * All rights reserved. 4 5 * … … 157 158 pos->y = 0; 158 159 160 int taskbar_height = 32; 161 159 162 switch (params->placement) { 160 163 case ui_wnd_place_default: … … 176 179 case ui_wnd_place_bottom_left: 177 180 pos->x = drect->p0.x - params->rect.p0.x; 181 pos->y = drect->p1.y - params->rect.p1.y - taskbar_height; 182 break; 183 case ui_wnd_place_bottom_right: 184 pos->x = drect->p1.x - params->rect.p1.x; 185 pos->y = drect->p1.y - params->rect.p1.y - taskbar_height; 186 break; 187 case ui_wnd_place_bottom_left_absolute: 188 pos->x = drect->p0.x - params->rect.p0.x; 178 189 pos->y = drect->p1.y - params->rect.p1.y; 179 190 break; 180 case ui_wnd_place_bottom_right :191 case ui_wnd_place_bottom_right_absolute: 181 192 pos->x = drect->p1.x - params->rect.p1.x; 182 193 pos->y = drect->p1.y - params->rect.p1.y;
Note:
See TracChangeset
for help on using the changeset viewer.