mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[libcalamaresui] Set margins based on viewstep suggestion
This commit is contained in:
parent
d7ed450dbf
commit
d952faf909
1 changed files with 2 additions and 2 deletions
|
@ -131,11 +131,11 @@ ViewManager::insertViewStep( int before, ViewStep* step )
|
|||
}
|
||||
else
|
||||
{
|
||||
// step->adjustMargins() "some magic"
|
||||
QLayout* layout = step->widget()->layout();
|
||||
if ( layout )
|
||||
{
|
||||
layout->setContentsMargins( 0, 0, 0, 0 );
|
||||
const auto margins = step->widgetMargins( m_panelSides );
|
||||
layout->setContentsMargins( margins.width(), margins.height(), margins.width(), margins.height() );
|
||||
}
|
||||
|
||||
m_stack->insertWidget( before, step->widget() );
|
||||
|
|
Loading…
Add table
Reference in a new issue