Homec4science

Handle resizing nicely

Authored by epriestley <git@epriestley.com> on Feb 23 2013, 15:28.

Description

Handle resizing nicely

Summary:

  • For images that aren't too large to fit, keep the stage at about 85% of the viewport height. This prevents it from bouncing around as you switch between images, and generally makes it feel big and important like it should. When the stage is larger than images, we center them vertically.
  • As the viewport is resized, shrink the stage and, if necessary, the images on it.

Test Plan:
{F33617}

{F33618}

Reviewers: chad, ljalonen

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5089

Details

Committed
epriestley <git@epriestley.com>Feb 23 2013, 15:28
Pushed
aubortJan 31 2017, 17:16
Parents
rPH26f8e76ee291: When an image is too wide in Pholio, scale it down
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHb4b81d0f9ab7: Handle resizing nicely (authored by epriestley <git@epriestley.com>).Feb 23 2013, 15:28