Alpha Video Training
Results 1 to 2 of 2

Thread: Programmatically resize container

  1. #1
    Member
    Real Name
    MobApp
    Join Date
    Sep 2013
    Posts
    312

    Default Programmatically resize container

    How do I programmatically resize a container on UX component?
    Say I wish to change the height and width x height to 5 inches x 7 inches based on some condition. Thanks.

  2. #2
    Member
    Real Name
    MobApp
    Join Date
    Sep 2013
    Posts
    312

    Default Re: Programmatically resize container

    I found it - the followings sets the container size (here height) to 90% of the panel height. Thanks.
    try {
    var m1 = {dialog.object}.getPointer('CONTAINER_3');
    var h1 = {dialog.object}.panelHeight('PANELCARD_1')
    jQuery(m1).css({'height': h1 * .9});
    } catch(error) {alert("Error resizing container: " + error.message);}
    For both height and width...
    try {
    var m1 = {dialog.object}.getPointer('CONTAINER_13');
    var h1 = {dialog.object}.panelHeight('PANELCARD_1');
    var w1 = {dialog.object}.panelWidth('PANELCARD_1');
    jQuery(m1).css({'height': h1 * .9, 'width': w1 * .9});
    } catch(error) {alert("Error resizing container: " + error.message);}
    Last edited by JPMPA; 07-25-2014 at 05:50 PM.

Similar Threads

  1. Replies: 1
    Last Post: 07-23-2014, 12:20 AM
  2. Programmatically changing password?
    By adrian1 in forum Application Server Version 11 - Web/Browser Applications
    Replies: 1
    Last Post: 09-28-2012, 03:24 PM
  3. Error computing HTML Template when Container put in Repeating Container
    By RichCPT in forum Application Server Version 11 - Web/Browser Applications
    Replies: 1
    Last Post: 02-29-2012, 12:37 PM
  4. Add rows programmatically
    By nlok888 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 8
    Last Post: 05-13-2010, 12:12 PM
  5. Programmatically address fieldnames
    By M.Richard in forum Alpha Five Version 9 - Desktop Applications
    Replies: 3
    Last Post: 03-23-2010, 02:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •