Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Mobile app - funky screen when go portrait to landscspe and then back to portrait.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mobile app - funky screen when go portrait to landscspe and then back to portrait.

    I now this has been discussed before, as far back as 2012, but I could not find a resolution to this issue in my search of the forum posts. The issue is that in my mobile app, when user starts in portrait view, all looks great. Then when turns to landscape view, looks great too. But when they then go back to portrait view, the font becomes tiny and the screen is on the top half of the screen. Then if go back to landscape, looks good. Back to portrait, and funky screen again.

    Is there a solution to this issue?
    Gary S. Traub, Ph.D.


    #2
    How old is the device and is it Safari.?
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

    Comment


      #3
      Hi Pete,

      My device is a Samsung s9+ Android. Your question got me thinking - is the behavior device specific? browser specific?

      I do not have an iphone, but do have an ipad - works correctly on the ipad!

      Also tested several browsers on my S9+ works fine on Firefox and Dolphin browser, but not on chrome, samsung internet, edge, or opera

      I do not think Safari is available on Android - at least I could not find it in the Google play store - so I cannot test Safari on the S9+

      This is some progress.

      Thanks so much for responding!

      Why would different browsers behave so differently?
      Gary S. Traub, Ph.D.

      Comment


        #4
        Well from what I have learned they are not only device friven the a type and model driven.Safari it a wild beast, anything could happen especially from around iPad2 and iPhone6., the smaller the device the more problematic things become.

        put his code in your onRenderComplete and onOrientationChange, also ass an object to your component called 'orientation' it will let you know just how your device thinks it's displaying, all it does is confirm what you think, but it does start you understanding what's going on, give yourself a chance by setting things left alignment and move forward from there, avoid centering..

        var o = {dialog.object}.getOrientation() ;

        {dialog.Object}.setValue('orientation',o);
        Insanity: doing the same thing over and over again and expecting different results.
        Albert Einstein, (attributed)
        US (German-born) physicist (1879 - 1955)

        Comment


          #5
          I am FAR from an expert but this code solves the problem for me using Samsung s8+:

          Place this in the onOrientationChange client side event for the UX and see if it solves it:

          Code:
          setTimeout(function(){
          window.scrollTo(0, 1);
          setTimeout(function(){
          var obj = {dialog.object}.getPanelObject();
          obj.resize();
          },100);
          },100);
          So far it has worked for me on iOS and Android....but I am sure others on here have much more elegant solutions.

          Comment


            #6
            Peter and Greg, I really appreciate the help.

            Greg, I tried what you wrote, and unfortunately it did not work - I put an alert statement at end so I could be sure the code was firing each time I changed the orientation of the device, and that there was no error in the code. Indeed the alert displayed with each orientation change, so the code did fire, but it did not fix the problem:

            setTimeout(function(){
            window.scrollTo(0, 1);
            setTimeout(function(){
            var obj = {dialog.object}.getPanelObject();
            obj.resize();
            },100);
            },100);
            alert('hello');

            Peter,

            I will try that approach - to get a handle on what is going on - but I think in the above, I already confirmed, in a way, that the orientation changes are indeed being detected - is there something more I would gain by this? I guess I don't really understand. Because what I think I really need is code that will preserve the size of text from the portrait and be able to redraw with that size when orientation returns to portrait. Thoughts?
            Gary S. Traub, Ph.D.

            Comment


              #7
              Gary..sorry my suggestion didn't help. I guess I misunderstood the display issue you are experiencing. Are you saying the text size changes on orientation change? Are you using em font sizes compared to px sizes?

              Comment


                #8
                Hi Greg,

                Yes the entire contents occupies approx the top one third of the screen and the text is tiny. But this behavior does not occur on the Dolphin browser, so unless there is a better solution, I will recommend that users use that browser for now. What device and browser do you use?

                Thanks for following up!

                Gary S. Traub, Ph.D.

                Comment


                  #9
                  Gary...is this happening on a list control? What theme are you using? Here is a video of my site running on Android (Galaxy s8+) using Chrome. It is using the Alpha theme. I rotate the phone several times but the font size remains constant....although the usability in landscape mode on a phone is very limited due to the control bars. This behavior is consistent on iOS devices and Android tablets running on pretty much any browser.

                  https://omeademovideos.s3.us-east-2....s.com/demo.mp4
                  Last edited by gregincolumbus; 07-12-2020, 03:05 PM.

                  Comment


                    #10
                    Hi Greg,

                    It's not just the list control; it happens to all controls, including buttons, input fields, everything. Regarding theme, I let the user choose, but generally start with MobBlue. I will try Alpha to see if the issue is resolved with that. But if that is the case, I would still recommend that users use the Dolphin Browser on Android since this behavior does not occur with that browser, regardless of theme ( at least so far for the ones I have tried). Thanks again for the input!
                    Gary S. Traub, Ph.D.

                    Comment


                      #11
                      Gary...thanks for the suggestion on using the Dolphin browser....I will give it a try. Sorry I couldn't be of more help on solving the problem. Maybe others will be able to help you more. Best of luck in reaching a solution!

                      Comment


                        #12
                        Hi Greg,

                        Sorry for the late response. You were helpful and I appreciate it!
                        Gary S. Traub, Ph.D.

                        Comment


                          #13
                          Well, the answer to this problem was as simple as the meta tags on the a5w page. The following needs to go at the top of the a5w page, right after <html> tag, and right before <head> tag:

                          <meta name="generator" content="Alpha Anywhere HTML Editor Version 12 Build 6488-5436">
                          <!-- must use in order to make XP Themes render -->
                          <meta HTTP-EQUIV="MSThemeCompatible" content="Yes" />
                          <meta http-equiv="X-UA-Compatible" content="IE=edge" />
                          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                          <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
                          <meta name="apple-mobile-web-app-capable" content="yes" />

                          Doing this, resolved my issues with tiny text on my login screen, and tiny text when changing from portrait to landscape and back to portrait.

                          Thanks to Selwyn!



                          Gary S. Traub, Ph.D.

                          Comment


                            #14
                            Thanks for following up.
                            Pete
                            Insanity: doing the same thing over and over again and expecting different results.
                            Albert Einstein, (attributed)
                            US (German-born) physicist (1879 - 1955)

                            Comment

                            Working...
                            X