Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tables with zero columns break theme/font stack #2472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

v-ein
Copy link
Contributor

@v-ein v-ein commented Feb 8, 2025


name: Pull Request
about: Create a pull request to help us improve
title: A table without columns breaks font/theme stack
assignees: @hoffstadt


Closes #2075

Description:
A table with no columns and a theme or font (however weird that sounds) puts the theme/font onto the stack but does not remove it, thus breaking styles everywhere else.

This PR moves the check for no-columns to the top of the draw() method (it actually checks for "no visible columns" -- this condition was added in DPG 2.0, we just need to perform the check earlier, before applying the theme/font).

Concerning Areas:
None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A table without columns breaks font/theme stack
1 participant