IDEMPIERE-1115 Zk: 2 Minor dashboard widget bugs.
This commit is contained in:
parent
61a0d9ca4b
commit
c361e73378
|
@ -91,6 +91,7 @@ public class DPRecentItems extends DashboardPanel implements EventListener<Event
|
||||||
Panelchildren recentItemsContent = new Panelchildren();
|
Panelchildren recentItemsContent = new Panelchildren();
|
||||||
panel.appendChild(recentItemsContent);
|
panel.appendChild(recentItemsContent);
|
||||||
bxRecentItems = new Vbox();
|
bxRecentItems = new Vbox();
|
||||||
|
bxRecentItems.setHflex("1");
|
||||||
this.setSclass("recentitems-box");
|
this.setSclass("recentitems-box");
|
||||||
recentItemsContent.appendChild(bxRecentItems);
|
recentItemsContent.appendChild(bxRecentItems);
|
||||||
createRecentItemsPanel();
|
createRecentItemsPanel();
|
||||||
|
@ -238,6 +239,7 @@ public class DPRecentItems extends DashboardPanel implements EventListener<Event
|
||||||
btnrecentItem.addEventListener(Events.ON_CLICK, this);
|
btnrecentItem.addEventListener(Events.ON_CLICK, this);
|
||||||
btnrecentItem.addEventListener(Events.ON_DROP, this);
|
btnrecentItem.addEventListener(Events.ON_DROP, this);
|
||||||
btnrecentItem.setSclass("menu-href");
|
btnrecentItem.setSclass("menu-href");
|
||||||
|
btnrecentItem.setHflex("1");
|
||||||
|
|
||||||
riShown++;
|
riShown++;
|
||||||
if (riShown >= maxri)
|
if (riShown >= maxri)
|
||||||
|
|
|
@ -407,7 +407,7 @@ public class DashboardController implements EventListener<Event> {
|
||||||
}
|
}
|
||||||
dashboardLayout.appendChild(maximizedHolder);
|
dashboardLayout.appendChild(maximizedHolder);
|
||||||
maximizedHolder.appendChild(panel);
|
maximizedHolder.appendChild(panel);
|
||||||
panel.setSclass("");
|
panel.setSclass("dashboard-widget dashboard-widget-max");
|
||||||
} else {
|
} else {
|
||||||
maximizedHolder.detach();
|
maximizedHolder.detach();
|
||||||
panel.detach();
|
panel.detach();
|
||||||
|
|
|
@ -594,6 +594,11 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
|
||||||
width: 92%;
|
width: 92%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dashboard-widget-max {
|
||||||
|
margin: auto;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.dashboard-report-iframe {
|
.dashboard-report-iframe {
|
||||||
min-height:300px;
|
min-height:300px;
|
||||||
border: 1px solid lightgray;
|
border: 1px solid lightgray;
|
||||||
|
@ -625,7 +630,6 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
|
||||||
|
|
||||||
.recentitems-box A {
|
.recentitems-box A {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
|
||||||
padding: 2px 0px;
|
padding: 2px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue