Safari Window Width On Yosemite

For some reason Safari will not reduce the window pane size to 780 pixels any more. This is a problem because when I used to narrow the window pane it forced the page data to format inside that width. Now it stops much wider so this no longer works. Any suggestions on how to override the new minimum pane width.


Last suggestion to Apple:

Could we quit playing with the Safari format for a few releases. It gets more frustrating to learn the innuendos every time I do an update. I think I swear more at Apple after every update. Yosemite flat browser shades don't work for low vision. The dark button override and contrast don't help. The whole thing might look good on 5k Mac's but your frustrating the rest of us immensely! Screen format width, green button forces your dock out of sight, favourites disappear . The whole green button is a massive source of frustration for me as it removes things I need from my screen.


Stop the tweaking or at least let us set things the way we had them. Webinars are a logistical pain to do when all the controls change so often.....users look like fools just trying to use the OS live. That isn't the purpose of the webinar.


Done my safari dump...how can I control the whole pane width to much less than ~960 pixels?

Mac Pro, OS X Yosemite (10.10), Safari

Posted on Oct 22, 2014 4:27 AM

Reply
8 replies

Jun 20, 2015 11:35 AM in response to Eric Root

The issue is that Safari now has a minimum width that is wider than it used to be in previous versions. I used to be able to mimic the width of an iPhone 5 by dragging a Safari window to its minimum width, but now the minimum width is too wide to mimic smaller screen mobile devices. The only way that I have found to make the content area more narrow is by opening Safari's sidebar.

Jun 24, 2015 5:09 AM in response to greg263

You can resize the window frame to practically any dimension you want; scaling the content in the viewport is another matter...

User uploaded file


To resize the active window in Safari, use this script in Script Editor:

tell application "Safari" to set the bounds of the front window to {0, 23, 780, 780}


The equivalent Terminal command:

osascript -e 'tell application "Safari" to set the bounds of the front window to {0, 23, 780, 780}'


The bounds refer to the bounding rectangle of the window using four numbers in an ordered set. The numbers individually define either the distance in pixels from the left or top of the screen. The first pair of numbers are coordinates that define the point of the top left of the rectangle and the second pair define the bottom right point of the rectangle.


To get the bounds of the active window in Safari, use this script in Script Editor:

tell application "Safari" to get the bounds of the front window


The equivalent Terminal command:

osascript -e 'tell application "Safari" to get the bounds of the front window'


Another option is to install Safari extensions to control window resizing options. One is ResponsiveResize:

User uploaded file


Another is Resize Window:

User uploaded file

User uploaded file


ResizeMyBrowser is an interesting web-based solution. You can create your own preset:

User uploaded file

Jun 24, 2015 7:01 PM in response to greg263

To scale web content in various viewports...


If you want to view a website that uses responsive design in different viewports, you can use a browser-based tool such as Viewport Resizer. Drag the provided bookmarklet to your Favorites bar and click once you've navigated to a website. There are options to click on preconfigured settings, or customize your own. Websites are live and fully interactive in various viewports. You can also use local .html files (i.e. file:///Users/<username>/path/to/file.html). Save the source file locally for any website from Safari's menu bar: File > Save As > Format: Page Source.

User uploaded file


Desktop viewport:

User uploaded file


iPhone 5 horizontal viewport:

User uploaded file


iPhone 5 vertical viewport:

User uploaded file


For presentation another web-based tool, FrameApp, uploads an image you provide (i.e. from Resizer) and presents it in a selection of device frames to download in a PNG image format:

User uploaded file


Another web-based tool, Placeit, provides a selection of device frames in an environment:

User uploaded file


50 Examples of Responsive Web Design

Jun 26, 2015 7:42 PM in response to greg263

greg263 wrote:


...green button forces your dock out of sight, favourites disappear . The whole green button is a massive source of frustration for me as it removes things I need from my screen.


Clicking the green full-screen button expands Safari's window to full-screen mode to focus on the user content. You can also enter full-screen mode by pressing the Command-Control-F keys. The menu bar and Dock are automatically hidden by default. The menu bar is available and will reappear when the cursor is moved to the top of the screen, and the Dock will reappear when it is moved to the bottom.


Since the tab bar can't be hidden when a window has multiple tabs, take advantage of full-screen mode by opening content in its own window. By the same reasoning, hide the Favorites bar by pressing the Command-Shift-B keys, or selecting View > Hide Favorites Bar from Safari's menu bar. Use the same key combination or menu selection to show it again.


Be aware that if you hide Safari's toolbar prior to entering full-screen mode, selected by choosing View > Hide Toolbar from Safari's menu bar, it will remain unavailable until you exit to return to the standard view and select View > Show Toolbar.


If full-screen mode is inappropriate for your use case, don't use it. To maximize Safari's window to fill the visible content, click the green button while holding down the Option key. The green button will change its symbol from two opposing triangles, indicating full-screen mode is available, to a plus sign, indicating zoom mode is available. You can also zoom the window by double-clicking the window's title bar, or choosing Window > Zoom from Safari's menu bar. The keyboard shortcut is Command-Option-F.


Full-screen and zoom buttons:

User uploaded fileUser uploaded file


While in standard view with the toolbar, Favorites bar, and Dock visible and available, you can hide them at any time with either a keyboard shortcut or by selecting the appropriate menu item. For instance, to hide or show the Dock press the Command-Option-D keys. The Dock can also be hidden by right-clicking or Option-clicking on the Dock separator and selecting "Turn Hiding On."

User uploaded file


If you wish to change the green button's zoom behavior when holding down the Option key to click it, from the window expanding to fill the visible content to expanding to fill the usable dimensions of the Desktop (i.e. maximized), you can turn to third-party apps such as Spectacle, BetterTouchTool, or Moom. Moom has a visible control overlay that appears when hovering the cursor over the green button.


Maximize the window (Moom):

User uploaded file


Return to previous window dimensions (Moom):

User uploaded file


OS X Yosemite: Take apps full screen

OS X Yosemite: Window basics

Mar 8, 2016 2:03 PM in response to Roote

Yet another in the endless outpouring of Apple's rigidly left-brained lands of the tunnel visioned geniuses.


There are some folks that create sites that have combined responsive and relative layouts. Being able to switch between rigidly defined sizes without being able to seeing the flow during resizing is of little use. Among other things, it provides feedback on object widths for carefully dialing in the relative position. This is certainly true of narrow screen widths where there is so little tolerance.


I will now have to switch my web design app to Firefox for previews. (It amazes me how bright Apple can be while also being so dumb.)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari Window Width On Yosemite

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.