Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Calendar/Timeline layout align issue

    Please consider the attached screenshot from the showcase. You can see that the controlsbar is not vertically centered, it's closer to the top. I have tried every trick in the book (well my book anyway) to make the items center vertically, which i'd like since i'm trying to move them to another place.

    Can anyone give me a tip if that is possible somehow. I have tried every align-related method in the controlsbar hlayout, both directly and via autochild. Can't get it to work. Perhaps it can't be done?

    Click image for larger version

Name:	align_timeline_calendar.png
Views:	226
Size:	31.2 KB
ID:	266530

    #2
    As is sometimes the case, i found a solution after posting. For some reason, there seems to be a bottom margin set for the controlsbar.

    if i do
    Code:
    HLayout controlsBar = timeline.getControlsBar();
     controlsBar.setLayoutBottomMargin(0);
    It centers.

    Comment

    Working...
    X