Results 1 to 3 of 3

Thread: ViewPort LoadMask: Can loadmask vertical location be changed from default location?

  1. #1
    Sencha Premium Member
    Join Date
    Jul 2015
    Posts
    13

    Default ViewPort LoadMask: Can loadmask vertical location be changed from default location?

    I am applying a loadmask to the viewport. However, i would like to change the default position (vertical centered/middle of viewport), to aprox 100 pixels from top of viewport and still centered.

    Is this possible?

    Thanks

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Not very easily. LoadMask has a sizeMask method and within it, it calls this:

    Code:
                // Always need to center the message wrap 
                me.msgWrapEl.center(me.el);
    That will set the left/top CSS styles which centers it vertically and there is no configuration to change this. You can override the method or try to force things with changing the CSS however dealing with the position styles will be a bit difficult.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2015
    Posts
    13

    Default

    Mitch,

    Thanks, ill give it a shot.

Similar Threads

  1. Changed application location...
    By drunkmoose in forum Sencha Cmd
    Replies: 1
    Last Post: 4 Jun 2014, 6:32 AM
  2. [OPEN] LoadMask styling changed accidentally for default theme in 2.3?
    By themightychris in forum Sencha Touch 2.x: Bugs
    Replies: 4
    Last Post: 26 Nov 2013, 8:25 AM
  3. Sencha Touch 2.1 : Updating sprite after location has changed
    By Trayak in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 4 Jan 2013, 11:03 AM
  4. code for google location show palo altos before my location
    By myput in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 13 Sep 2011, 11:20 PM
  5. window.location(document.location) in Grid's listener
    By SunLiWei in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 26 Sep 2007, 6:31 AM

Tags for this Thread

Posting Permissions

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