Page 1 of 1

popup behaviour and control

Posted: Thu Aug 14, 2014 3:22 pm
by Slava Balabanov

Hi,
First of all i want to say that its not easy to search for answers through the search option because the results are random at time. To be more specific, i would like to see the new matching results first.

Now to my problem:
I've tried to use the new popup component that you've added but have several questions/issues with it:

  1. After i add the popup component, when it opens, it has no border. how do i put a border for it?

  2. Inside my popup i have a text area. When i close and open the popup, the text is still there. How can i catch the closing/openning event of the popup to clear the text?

  3. For testing i have a button that opens the popup. The first time it opens, it "centers" on the button which is on top of the screen. After the first time, all the following openings of the popup makes the popup open at the center of the screen as it should. My popup is set to position to 'window'

    Thanks in advance


popup behaviour and control

Posted: Thu Aug 14, 2014 6:29 pm
by Kateryna Grynko

Hi Slava,

You can contact GetSatisfaction support and ask them to improve a search engine :)

1) Here is a CSS code to set a popup border:pre.ui-popup-container{
border:1px solid red;
}/pre2) You can use these events: http://demos.jquerymobile.com/1.2.0/d...

3) Everything works for us. Could you please clarify what browser and library version you use? Is it always reproducible?


popup behaviour and control

Posted: Sun Aug 17, 2014 11:30 am
by Slava Balabanov

Hi,
Thanks for the 2 first answers.
About the third question. It happens all the time. I'm using 2.0 libraries and Chrome, and it happens on IE too.
To reproduce:
http://appery.io/app/mobile-frame?src...

  1. Press the open popup button, it will open the popup. Notice where it is (not center of the screen)

  2. Press outside the popup to close it

  3. Open the popup again using the button. Notice that its possition is different (now center of the screen)

    This happens everytime on the first time

    Thanks


popup behaviour and control

Posted: Mon Aug 18, 2014 1:15 am
by Yurii Orishchuk

Hi Slava,

I've checked your use case and need to say - that's a bug.

I've reported it to our team.

Here is workaround for you:

1 Open your page.

2 Activate button by click on it.

3 Add "click" event handler with action "RunJavascript" and populate it with following code: http://prntscr.com/4dvhmw/direct

pre

//Note: you need to replace "mobiletextarea_5" with your textarea component name(inside popup).
Apperyio("mobiletextarea_5").removeAttr("style");

/pre

http://prntscr.com/4dvhmw/direct

4 Order this event handler to be in top before your event handler with "openpopup" action. See details: http://prntscr.com/4dvio9/direct

That's all.

Regards.