IvanNazaruk
IvanNazaruk
**Try use:** [`dpg.get_item_rect_size()`](https://dearpygui.readthedocs.io/en/latest/reference/dearpygui.html#dearpygui.dearpygui.get_item_rect_size) ### Test code: ```python import dearpygui.dearpygui as dpg dpg.create_context() with dpg.window(): dpg.add_button(label='test', callback=lambda item: print(dpg.get_item_rect_size(item))) dpg.add_button(label='test22222', callback=lambda item: print(dpg.get_item_rect_size(item))) dpg.create_viewport() dpg.setup_dearpygui() dpg.show_viewport() dpg.start_dearpygui() dpg.destroy_context() ```
I was able to reproduce this bug in myself. As I understand it depends on the scale of the system: if it is 100%, then the button behaves normally, but...
https://dearpygui.readthedocs.io/en/latest/documentation/textures.html#loading-images