Changeset f6304727 in mainline for uspace/lib


Ignore:
Timestamp:
2026-03-08T21:20:30Z (9 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
13277e3
Parents:
01cd15bc
Message:

Handle screen resize in Navigator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/list.c

    r01cd15bc rf6304727  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2026 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    471471        ui_list_scrollbar_rect(list, &srect);
    472472        ui_scrollbar_set_rect(list->scrollbar, &srect);
     473
     474        /* Make sure cursor stays on page after resize. */
     475        if (list->cursor != NULL)
     476                ui_list_cursor_move(list, list->cursor, list->cursor_idx);
    473477}
    474478
Note: See TracChangeset for help on using the changeset viewer.