Live data from Hacker News

We finally learned to center a div, then browsers added sidebars

seg6.space

131–140 of 172 posts

Re: We finally learned to center a div, then browsers added sidebars

#132
post #76

Earlier quoted context omitted.

While providing this information to websites without user permission is probably a longstanding mistake of web browsers, windowing systems withholding proper on-screen positioning from native applications is a bug in that system - a bad one.

Why? The window and its position shouldn't matter to the app. My tiling window manager doesn't care what your snowflake app thinks it wants, and I don't either.

You are literally replying to a thread that has an example of a game where the position of the window matters.

Re: We finally learned to center a div, then browsers added sidebars

#134
post #119

The sidebar reduces the size of the viewport, and the viewport is what you're centring within. This is obvious and sensible behaviour from Firefox. Please don't centre based on screen res or whatever. Basing your centre position on anything other than the viewport is user-hostile behaviour.

Perhaps bad design, but user-hostile is a bit of a stretch.

It's user-hostile enough to make users hostile toward your site, for sure. It's not annoying, it's enraging.

Re: We finally learned to center a div, then browsers added sidebars

#135

The net result of what this site is doing seems to result in one of two effects when I open the sidebar, randomly: 1) the sidebar covers the content, while the content has blank space to the right, or 2) the content moves off the right edge of the screen, leaving a large blank space to its left. Both of these are wrong. If I have a sidebar open, the site is now narrower , stop trying to be clever. My immediate reacti…

> My immediate reaction to this is why is the browser giving the site this information, and could we stop. That's my reaction to almost all new web APIs :|

Gotta pump those fingerprinting datapoints up.

Re: We finally learned to center a div, then browsers added sidebars

#137
post #78

Earlier quoted context omitted.

> If I have a sidebar open, it's because that space is not yours to care about. Drawing UI is hard. Firefox likes to draw the websites underneat the scrollbar. Google likes to draw system nabigation buttons over the window with all kind of funny interractions. That's what happenes when you train people "on the job".

> Firefox likes to draw the websites underneat the scrollbar. This was a choice that they actively made. It's not hard by default, they just chose to do something stupid because they think it looks pretty.

The way I read the parent commenter it almost seems like they feel that Google's decision was the really stupid one. Maybe neither one is that great.

Re: We finally learned to center a div, then browsers added sidebars

#139
post #97

Earlier quoted context omitted.

You'd be surprised

That's somehow controversial? There are kiosks used for public browsing, where the user has access to full browser app window and can change elements. There are also ways to get around kiosk mode restrictions, or at least there were for Windows in kiosk mode back in the day. We used it to get browsing access or to just mess with the kiosk. The fun!

Of course, but "physical buttons have to match up with website elements" isn't relevant in either case.

Re: We finally learned to center a div, then browsers added sidebars

#140
post #119

The sidebar reduces the size of the viewport, and the viewport is what you're centring within. This is obvious and sensible behaviour from Firefox. Please don't centre based on screen res or whatever. Basing your centre position on anything other than the viewport is user-hostile behaviour.

Perhaps bad design, but user-hostile is a bit of a stretch.

It causes annoying flickering when you resize the window, as it is constantly fighting the browser.
Post reply on HN