PhonologicalCorpusTools / SLPAA

5 stars 0 forks source link

[BUG] non-manual module-- tabs not wide enough for bolded text #326

Closed kvesik closed 6 months ago

kvesik commented 6 months ago

Describe the bug When non-manual tabs are bolded (because they contain some sort of content), the tabs run out of space to display the text.

To Reproduce Steps to reproduce the behavior:

  1. Create a new non-manual module
  2. Click (eg) "all sections are neutral"
  3. Click to the next tab, so the tab font style updates
  4. Notice that there's not enough room on each tab to show the bolded text.

This also happens if I save the module and re-open it.

Expected behavior Tabs should be able to display complete text, even when bolded.

Screenshots image

Operating system and SLP-AA version

Additional context Is there a repaint() or something similar that could be redone after the style update, so that PyQt can adjust to the wider space required for bolding?

stannam commented 6 months ago

Thanks for catching this @kvesik Unfortunately, repaint() did not work. Instead, the recent commit adds +15 pixels to each tab label from the beginning. It is a temporary solution to make nonmanual presentable. I'll work on this later.

Please let me know if it renders correcly on your machine.