Table row height ignored for text

Open
#2,561 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, python
Domain
frontend

Research direction

Start with the PlotHelp example and compare table rows containing add_selectable with rows containing add_text, keeping the specified height constant. Trace how table_row height is applied for each widget type; done means text rows respect the requested row height, as selectable rows do.

Written by the indexing model from the issue text.

Description

state: pending type: bug

Table row height works correctly for rows with selectable but is ignored for rows with text.

def PlotHelp(self):
        print("PlotHelp")
        dpg.delete_item(self.FileTable, children_only=True, slot=0) # remove columns
        dpg.delete_item(self.FileTable, children_only=True, slot=1) # remove rows 
        dpg.add_table_column(parent=self.FileTable, label="Plot Action")
        dpg.add_table_column(parent=self.FileTable, label="Mouse")
        dpg.add_table_column(parent=self.FileTable, label="Key")
        actions = ["Pan Plot", "Zoom", "Zoom Region", "Unzoom", "previous file row", "next file row", "scroll left one screen", "scroll right one screen"]
        mouse = ["Click & Drag on plot", "Scroll Mouse Wheel", "Right Click & Drag", "Double Click", "", "", "", ""]
        key = ["", "", "", "", "arrow Up", "arraw down", "arrow left", "arrow right"]
        for i in range(len(actions)):
            with dpg.table_row(parent=self.FileTable, height=ROW_PXL):
                dpg.add_selectable(label=actions[i])
                dpg.add_selectable(label=mouse[i])
                dpg.add_selectable(label=key[i])
                #dpg.add_text(actions[i])
                #dpg.add_text(mouse[i])
                #dpg.add_text(key[i])
Dominant language
C++
Stars
15.7k
Forks
790
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hoffstadt/DearPyGui

All issues in hoffstadt/DearPyGui

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.