mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +01:00
added padding support to layouts
This commit is contained in:
@@ -45,6 +45,8 @@ GridLayout::GridLayout(std::size_t colCnt, std::size_t rowCnt):
|
||||
Layout(typeid(GridLayout)),
|
||||
_colCnt(colCnt),
|
||||
_rowCnt(rowCnt),
|
||||
_horPadding(0),
|
||||
_vertPadding(0),
|
||||
_lastIdx(0)
|
||||
{
|
||||
poco_assert (_colCnt > 0);
|
||||
|
||||
@@ -41,8 +41,9 @@ namespace Poco {
|
||||
namespace WebWidgets {
|
||||
|
||||
|
||||
HorizontalLayout::HorizontalLayout():
|
||||
Layout(typeid(HorizontalLayout))
|
||||
HorizontalLayout::HorizontalLayout(int pad):
|
||||
Layout(typeid(HorizontalLayout)),
|
||||
_padding(pad)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -41,8 +41,9 @@ namespace Poco {
|
||||
namespace WebWidgets {
|
||||
|
||||
|
||||
VerticalLayout::VerticalLayout():
|
||||
Layout(typeid(VerticalLayout))
|
||||
VerticalLayout::VerticalLayout(int pad):
|
||||
Layout(typeid(VerticalLayout)),
|
||||
_padding(pad)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user