mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Improve hexdump width calculation. (#1389)
This commit is contained in:
parent
a2eb0011f4
commit
8d6622ac81
@ -1225,8 +1225,8 @@ void HexdumpWidget::zoomOut(int range)
|
||||
void HexdumpWidget::updateWidths()
|
||||
{
|
||||
// Update width
|
||||
ui->hexHexText->document()->adjustSize();
|
||||
ui->hexHexText->setFixedWidth(ui->hexHexText->document()->size().width());
|
||||
auto idealWidth = ui->hexHexText->document()->idealWidth();
|
||||
ui->hexHexText->document()->setTextWidth(idealWidth);
|
||||
|
||||
ui->hexOffsetText->document()->adjustSize();
|
||||
ui->hexOffsetText->setFixedWidth(ui->hexOffsetText->document()->size().width());
|
||||
|
Loading…
Reference in New Issue
Block a user