CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Alignement in IWCGJQMContent

General discussion

by Davide » 05 Mar 2014 12:02

Hello,

I would like to align a JQMLabel at the top of the content region and another at the bottom.
I set the content region "FullHeight" to true but the labels are shown togheter at the top.
I saw in the sample application that you use JQMLabel with "<p></p>" as a vertical spacer but I don't know if there is any way to specify the height as 100% on an empty paragraph.
Is there a way to have my labels one aligned at the top and the other at the bottom althought between theme there should be only blank space ?

Thank you,
Davide
Davide
 
Posts: 150
Joined: 14 Oct 2013 11:33

by Alexander Bulei » 06 Mar 2014 11:00

Hi Davide,

Jquery mobile framework doesn't work with fixed position because of responsive layout.
So, to align to bottom, you should do it by yourself using the css.

Create new custom css file (If you don't have), and add the new css class like this:

css code
div.my-bottom-label {
bottom: 50px;
position: absolute;
}


Then set the css property of label (designtime or runtime):

delphi code
IWCGJQMLabel1.Css:= 'my-bottom-label';


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to General

cron

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.