Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
VerticalView items alignment — Gideros Forum

VerticalView items alignment

emreemre Member
edited September 2013 in General questions
Hi,
I want to align center on VerticalView items.
Currently, if VerticalView item's widths are different, it aligns to left. (attachment)

Regards,
LeftAlignedVerticalView.png
260 x 288 - 49K

Comments

  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    That is one great idea.
    Added alignment to View.lua in the github repo:
    https://github.com/ar2rsawseen/GameTemplate

    Now you can provide left, center, right alignment for VerticalView and top, center, bottom alignment for horizontal view.
    local menu = VerticalView.new({
        padding = 20, 
        easing = conf.easing,
        align = "center
    "})

    Likes: emre

    +1 -1 (+1 / -0 )Share on Facebook
  • Thanks Arturs,
    Monday we will register the game, Atilim will help me.
    I am so excited.
    Thanks for your helps...
Sign In or Register to comment.