feat: remove spacing for launcher item

Change-Id: I040a0a5b1c8163cdfbea663cb1e1447f54b1f557
This commit is contained in:
haruyukilxz 2018-09-04 10:10:54 +08:00
parent fd3d0a14aa
commit f17cce91d6
No known key found for this signature in database
GPG Key ID: 593AFD577C1B1A60
Notes: gerrit 2018-09-06 16:18:37 +08:00
Verified+1: <jenkins@deepin.com>
Code-Review+2: 张丁元 <lxz@ilxz.me>
Submitted-by: 张丁元 <lxz@ilxz.me>
Submitted-at: Thu, 06 Sep 2018 16:18:36 +0800
Reviewed-on: https://cr.deepin.io/38178
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -97,12 +97,12 @@ void MainPanel::updateDockPosition(const Position dockPosition)
case Position::Top:
case Position::Bottom:
m_itemLayout->setDirection(QBoxLayout::LeftToRight);
m_itemLayout->setContentsMargins(1, 0, 1, 0);
m_itemLayout->setContentsMargins(0, 0, 1, 0);
break;
case Position::Left:
case Position::Right:
m_itemLayout->setDirection(QBoxLayout::TopToBottom);
m_itemLayout->setContentsMargins(0, 1, 0, 1);
m_itemLayout->setContentsMargins(0, 0, 0, 1);
break;
}