hoffstadt / hoffstadt/DearPyGui

Gap in widght and height sizes after compilation due to "resizable=False" viewport attribute

Open
#2,128 1 comment 0 reactions 0 assignees View on GitHub
state: waiting response
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

----

## Version of Dear PyGui

Version: 1.9.1
Operating System: Windows 10

## My Issue/Question
There are Gaps in widght and height sizes after compliation due to "resizable=False" viewport attribute. The gaps are about 6px.

## To Reproduce

Steps to reproduce the behavior:
1. Create a gui with a viewport and a windows
2. Put dimensions to have the right and bottom borders very closed in order to see the bad behavior.
3. Set the viewport attribut "resizable=False"
4. Compil your script with nuitka or pyinstaller in a standalone folder
5. Launch the executable file and run the interpreted one
6. Compare the result: there gaos in both height and widght sizes.

## Expected behavior

Obtain the samr interfaces after compilation without the gaps

```python
# Here's some code anyone can copy and paste to reproduce your issue

import dearpygui.dearpygui as dpg

def main():
    dpg.create_context()
    dpg.create_viewport(title='viewport',
                        width=352, height=158,
                        min_height=158,
                        max_height=158,
                        min_width=352,
                        max_width=352,
                        clear_color=(255,255,255,255),
                        resizable=False)

    with dpg.window(label="window",
                    no_close=True,
                    no_collapse=True,
                    width=325, height=115,
                    pos=[10,3],
                    no_scrollbar=True,
                    no_resize=True,
                    no_move=True):
        pass
   

    dpg.setup_dearpygui()
    dpg.show_viewport()
    dpg.start_dearpygui()
    dpg.destroy_context()
###############################################
###############################################

if __name__ == '__main__':
    main()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.