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

White padding on the left side when disabling the row index column #269

Open
divadsn opened this issue Feb 18, 2025 · 2 comments
Open

White padding on the left side when disabling the row index column #269

divadsn opened this issue Feb 18, 2025 · 2 comments

Comments

@divadsn
Copy link

divadsn commented Feb 18, 2025

Right now when I want to create a Sheet widget without the row index (show_row_index=False) I get the following visual bug:

Image

@ragardner
Copy link
Owner

Thanks for your report, confirmed issue, will be fixed soon

ragardner added a commit that referenced this issue Feb 18, 2025
#### Changed:
- Text now wraps by character by default, can also disable wrapping or wrap by word
- Significant changes to how text is rendered
- Removed mousewheel scrolling lines in header, replaced with vertical axis table scroll
- Resizing row height to text is now based on the existing column width for the cell/cells, includes double click resizing
- Treeview mode `Node` class now uses `str` for parent and `list[str]` for children attributes
- Function `get_nodes()` renamed -> `get_iids()`
- Removed `data_indexes` parameter from `mapping_move...` functions
- Reduce default treeview indent
- `move()` function now returns the same as other move rows functions
- All `Sheet()` functions with an `undo` parameter have been set to `True` by default
- Using `Sheet.set_data()` or `Span`s to set an individual cell's data as `None` will now do so instead of returning
- Setting `show_top_left` during Sheet() initialization will now make the top left rectangle always show

#### Added:
- Natural sorting functionality [#238](#238)
- Treeview mode now works with all normal tksheet functions, including dragging and dropping rows
- Cell text overflow `allow_cell_overflow: bool = False` to adjacent cells for left and right alignments, disabled by default
- Text wrap for table, header and index
```python
# "" no wrap, "w" word wrap, "c" char wrap
table_wrap: Literal["", "w", "c"] = "c",
index_wrap: Literal["", "w", "c"] = "c",
header_wrap: Literal["", "w", "c"] = "c",
```

- `tree` parameter to `insert_rows()` function, used internally

#### Fixed:
- Index fonts now work correctly
- Functions `column_width()` and `row_height()` work correctly for any parameters
- Down sizing rows/columns when scrolled to the end of the axis would result in a rapid movement of row height/column width
- Address [#269](#269)

#### Improved:
- Minor performance improvements for:
    - `item_displayed()`
    - `show_rows()` / `show_columns()`
    - `move()`
    - Row insertion
@ragardner
Copy link
Owner

Hello,

I have addressed the issue in version 7.4.0 which is now released.

Sheet initialization now has show_top_left as False by default, when this is the case it should hide the top left rectangle whenever the index and or header is hidden.

Let me know if you have further issues.

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

No branches or pull requests

2 participants