mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Dashboard: Remove extra top margin when dashboard layout as no title or toolbar (eg. in dashboard pages)
This commit is contained in:
@@ -53,6 +53,15 @@ class DashboardLayout extends UIBlock
|
||||
return array_merge($this->aDashboardRows, [$this->oToolbar]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see static::$sTitle
|
||||
* @return bool
|
||||
*/
|
||||
public function HasTitle(): bool
|
||||
{
|
||||
return strlen($this->sTitle) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
@@ -61,6 +70,15 @@ class DashboardLayout extends UIBlock
|
||||
return $this->sTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see static::$oToolbar
|
||||
* @return bool
|
||||
*/
|
||||
public function HasToolbar(): bool
|
||||
{
|
||||
return $this->oToolbar->HasSubBlocks();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Combodo\iTop\Application\UI\Base\Layout\UIContentBlock
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user