jQuery.Marquee icon indicating copy to clipboard operation
jQuery.Marquee copied to clipboard

The width-setting of the Marquee inner-div that is set to 100 000 px breaks my responsive layout

Open martinmidtsund opened this issue 9 years ago • 16 comments

If I change it to e.g. 500% instead, it works fine.

I'm using 100% width for most of my elements, and when I use the 100 000 px width in the marquee, all of my other elements also take on that width.

This is the line in question: https://github.com/aamirafridi/jQuery.Marquee/blob/e05f18a45cc78feb5c779d182b670d1f65370069/jquery.marquee.js#L147

martinmidtsund avatar Jul 02 '15 09:07 martinmidtsund

Sorry cannot understand the issue. Do you have an example to explain.

aamirafridi avatar Sep 05 '15 18:09 aamirafridi

If you look at the line I am linking to, it has width:100000px. I have to change it to percent, e.g. 500% to make it responsive, at least in my layout. The difference is px vs %.

If I can make the time, I will try to make a simple example of the problem, if you cannot see this.

martinmidtsund avatar Sep 07 '15 07:09 martinmidtsund

I am actually having the same issue, it bumps my div down under the parent div and isn't complying with responsive width design. I will post a screenshot soon.

ghost avatar Oct 06 '16 18:10 ghost

asdfjk

In my case if the content length exceeds the value of the wrapper it forces a new row inside of the marquee.

Also I am assuming for these two guys they are having issues with the marquee affecting other elements in their view due to the number.

Maybe a way to dynamically set this value upon object initialization would solve the problem for these people.

natedigzz avatar May 24 '17 20:05 natedigzz

Any progress on this? Screenshot 2023-01-04 at 18 40 47

heckfy88 avatar Jan 04 '23 16:01 heckfy88

Any progress on this? Screenshot 2023-01-04 at 18 40 47

Please create an example with the issue. Here is the link to create a demo with the problem http://jsfiddle.net/aamir/jc7F3/285/

aamir-mns avatar Jan 04 '23 17:01 aamir-mns

Would github pages work for you? https://heckfy88.github.io/monitors/

heckfy88 avatar Jan 04 '23 17:01 heckfy88

Would github pages work for you? https://heckfy88.github.io/monitors/

Thanks, @heckfy88. To me, the marquee is appearing in one line. Please explain the steps to produce the issue. image

aamir-mns avatar Jan 05 '23 09:01 aamir-mns

Screenshot 2023-01-05 at 15 57 31 you can see that the width of marquee elements is bigger than the width of the screen

try this script in the console:

var docWidth = document.documentElement.offsetWidth; [].forEach.call( document.querySelectorAll('*'), function(el) { if (el.offsetWidth > docWidth) { console.log(el); } } );

it shows all the elements that have width that is more than width of the screen, and it's all the marquee

heckfy88 avatar Jan 05 '23 14:01 heckfy88

Screenshot 2023-01-05 at 16 02 06

that's a better screen

heckfy88 avatar Jan 05 '23 14:01 heckfy88

@heckfy88 please explain what you expect in this example. What is the issue that you want to solve? The marquee seems to be working fine.

aamir-mns avatar Jan 06 '23 10:01 aamir-mns

I believe I'm explaining it: The marquee increases the width of a webpage. If my screen dimensions are 1000x1000, without the marquee the dimensions of a webpage are 1000x1000, but if I use your marquee, the website dimensions become like 1500x1000. That's not ok

heckfy88 avatar Jan 06 '23 10:01 heckfy88

I think you have some extra styling and wrappers around marquee. Can you try this http://jsfiddle.net/5h2ro8kp/ ?

aamir-mns avatar Jan 06 '23 11:01 aamir-mns

Screenshot 2023-01-07 at 03 02 13 I deleted everything but

*some text*
with the same properties as you have, nothing changed

heckfy88 avatar Jan 07 '23 01:01 heckfy88

@aamir-mns I've deleted a slider - it was the slider, I am so sorry for wasting so much of your time

heckfy88 avatar Jan 08 '23 19:01 heckfy88

Screenshot 2023-01-07 at 03 02 13

I deleted everything but some text with the same properties as you have, nothing changed

Please updated the fiddle link and paste it here so I can understand the issue you are having. You can fork this link http://jsfiddle.net/5h2ro8kp/ image

aamir-mns avatar Jan 09 '23 11:01 aamir-mns