AtmoOmen / CurrencyTracker

FFXIV Dalamud Plugin Currency Tracker
4 stars 1 forks source link

Pagination buttons broken in the UI when below a certain width #7

Closed PrincessRTFM closed 11 months ago

PrincessRTFM commented 11 months ago

The way the pagination buttons are positioned from the right edge of the window means that when the window is below a certain width, they overlap with the records-per-page and graphs buttons.

AtmoOmen commented 11 months ago

To be honest, this is an issue with IMGUI, as it does not provide native center alignment functionality. Therefore, the "center alignment" in the plugin is through calculating pos to roughly position the page flipping buttons in the middle, while the "Records Per Page" and "Graphs" buttons are just commonly left aligned, resulting in overlap. I will try some methods to improve this issue, but it may not be able to fundamentally solve the problem..

PrincessRTFM commented 11 months ago

You could also just set window size constraints so the window can't be shrunk enough for it to matter, if that's easier

AtmoOmen commented 11 months ago

Thanks for advice but set a min size of the window may not be a good way for it have to think about different PC/Laptop screen size/font size, and I just put the Graphs button next to the paging component so now they would not overlap.