Change container width to 32767 with jquery in Opera

I want to make a mini graph with jquery and for this timeline have a width over 32767 pixels. When I change it with jquery $(".timelinecontainer").width(32767);

in Opera it doesn't change it, but it works in other browsers.

Can you give me some advice to get it to work in Opera?

+1


source to share


7 replies


I suspect Opera keeps the window width short and therefore cannot handle values ​​greater than 32767. You will probably change your approach and scale the timescale to fit the current window and then let you zoom in on parts of it. I think your interface will look and perform better. As you seem to be doing this, the user will have to do a lot of scrolling to view the timeline and will never be able to see it in full.



+4


source


I'm sure I'll be on fire for this, but ... you can just ignore Opera.

If you like how things look in other browsers (IE, FF, Safari / Chrome), I would say that you have 99% of your bases.



Of course, you can indicate a bug in Opera. (although I think it might be jquery - it might have different code for Opera). If you could create a simple HTML page to reproduce the problem, you would know. Then attach it to the bug report.

+3


source


This is a very old Opera bug that for some reason they can't solve. Opera is only popular in some regions and this bug is mostly ignored by developers.

There is no automated solution for this. As a quick solution, you can detect the web browser in your script and limit the width for Opera. As an example - scroll this guitar tab all the way down in Opera.

+1


source


I can confirm that this is indeed a bug in current versions of Opera. The good news is that we are working on fixing it (I work at Opera, so I know what's going on there :)), so in the not too distant future your script should start working as you expect.

I would suggest that if the workaround that the first answer above suggests is too difficult to implement, you should ignore the problem and wait for Opera's update that fixes it.

+1


source


This is a bug and has been fixed in Opera 12 pre-alphas available from http://my.opera.com/desktopteam

+1


source


This is definitely a bug with Opera.

By the way, I saw it for the first time yesterday. In my situation I have an inner container width:9999em

and an outer container, which uses overflow:hidden

and scrollLeft()

to create the carousel. Opera scrollLeft()

stops responding to this width.

Upload a bug to Opera: https://bugs.opera.com/wizard/

0


source


Sounds like an Opera bug to me too.

Why not take a look at the Simile Timeline project ( http://simile.mit.edu/timeline/ ) and see how they did it?

0


source







All Articles