Skip to content

Commit 2c5d47d

Browse files
committed
Fix tileset/palettes tab height
1 parent 9a08420 commit 2c5d47d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main-window.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,8 @@ void Main_Window::update_active_controls() {
890890
}
891891
int tdw = 12 + Fl::scrollbar_size(), tdh = 12 + OS_TAB_HEIGHT;
892892
_left_tabs->size_range(tw + tdw, min_th + tdh, tw + tdw, max_th + tdh);
893-
int tdx = _left_tabs->x() - _tilemap_scroll->x();
894-
_left_tabs->resize(_left_tabs->x(), _left_tabs->y(), _left_tabs->w(), _tilemap_scroll->h() + tdx);
893+
int tdy = _tilemap_scroll->y() - _left_tabs->y();
894+
_left_tabs->resize(_left_tabs->x(), _left_tabs->y(), _left_tabs->w(), _tilemap_scroll->h() + tdy);
895895

896896
if (format_has_palettes(Config::format())) {
897897
_palettes_tab->activate();

0 commit comments

Comments
 (0)