cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Padding around elements in /oauth2/authorize login UI

Padding around elements in /oauth2/authorize login UI

Olive T.
New member | Level 1

Is there any way to get the oauth2/authorize page to put padding around the login UI?

My app's UI looks like this (I'm not using the iOS SDKs, I'm using the REST API directly, so that I can present the auth interface in a custom way):

The popover contains a plain UIWebView. However wide I make the popover / webview, the email and password fields size to fit the width and the "sign in" button right-aligns without any padding, so they end up hard against the edges. Is this by design?

 

16 Replies 16

Re: Padding around elements in /oauth2/authorize login UI

Greg-DB
Dropboxer

Thanks for writing this up Olive! The formatting on this page is a known issue we'll fix on our side.

Re: Padding around elements in /oauth2/authorize login UI

Olive T.
New member | Level 1

Thanks Gregory, that's good to hear!

Re: Padding around elements in /oauth2/authorize login UI

Olive T.
New member | Level 1

Hi Gregory,

What's the timescale for fixing this? We are considering reverting to v1 API in the meantime.

 

Re: Padding around elements in /oauth2/authorize login UI

Greg-DB
Dropboxer

Apologies for not following up on this thread, Olive! This should already be fixed. Are you still seeing this? 

(This may work differently in your app of course since you're not using the SDK, so if you are still seeing an issue, please supply a screenshot showing the current state of the page in your app.)

Re: Padding around elements in /oauth2/authorize login UI

Olive T.
New member | Level 1

Thanks, Gregory. Unfortunately it's actually even worse now -- the button is no longer entirely onscreen:

 

This problem exists on an iPad 2 (non-retina) or iPad Air (retina). Strangely enough, on an iPad Pro, it's okay, but only if the iPad Pro is running at non-native resolution, i.e. emulating the screen size of an iPad Air; if the iPad Air is at native resolution, the problem persists. Hopefully this information can help you to track down the fix!

 

Re: Padding around elements in /oauth2/authorize login UI

Greg-DB
Dropboxer

Do you know what the User-Agent for your UIWebView is? It looks like you're actually getting the desktop version of this page (which isn't fitting in that narrow UIWebView).

Re: Padding around elements in /oauth2/authorize login UI

Olive T.
New member | Level 1

User-Agent is unchanged from the default. Here's how it looks when run on the iPad simulator (on which the issue is also present):

Mozilla/5.0 (iPad; CPU OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13E230

 

Re: Padding around elements in /oauth2/authorize login UI

Olive T.
New member | Level 1

But yes, if I make the popover the whole width of the device's screen, it does look as though I'm getting the desktop version:

Re: Padding around elements in /oauth2/authorize login UI

Olive T.
New member | Level 1

(NB the same User-Agent works fine with the v1 SDK's special "/1/connect_login" endpoint.)

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Kalsoomdanish Explorer | Level 4
  • User avatar
    Coma New member | Level 2
  • User avatar
    Olive T. New member | Level 1
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?