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

width 100% inside a table

Open NexusFred opened this issue 8 years ago • 12 comments

Hello,

I have a small width problem when the marquee div is inside a table td.

Sample https://jsfiddle.net/NexusFred/pazp2mb9/

How can I fix this ?

Thanks

Best regards

Nexus

NexusFred avatar Sep 13 '16 14:09 NexusFred

It doesn't only happen with tables. I have encountered the problem with a normal div as well.

Sample: https://jsfiddle.net/pazp2mb9/5/

It seems to me that this is some bug with the library itself, as we both use the standard css to run it.

andjsch avatar Sep 17 '16 23:09 andjsch

Hello Andreas,

Your Sample looks good to me, your div take 100% of the available space and not beyond !!

(I use Firefox 47.01)

NexusFred avatar Sep 18 '16 13:09 NexusFred

Not totally true. The last text is just appearing and not moving out from the right to the left. You can see the correct behavior if you set the width to 500px. The wrong behaviour is starting at 600px.

You seem to have another problem as well, I thought at first that you mean the same as I do.

(Chrome 53, Firefox 48.0.2)

andjsch avatar Sep 18 '16 15:09 andjsch

You right !! 2 Bugs who will soon correct I hope :*)

NexusFred avatar Sep 22 '16 12:09 NexusFred

The problem is that your content is not long enough. The purpose of marquee is to see long content. If your content is not long enough than you don't need to apply the plugin?

aamirafridi avatar Sep 27 '16 12:09 aamirafridi

the AndreasSchantl's bug maybe but the width 100% inside a TD issue do not have anything to see with the text length.

NexusFred avatar Sep 28 '16 09:09 NexusFred

For sure not. Your bug is real. Altough I wished there was an fix for mine...

Maybe a way to show short texts three times and not only just twice? Should solve the problem as far as I can see (but I hadn't had a look at the code yet...)

andjsch avatar Sep 28 '16 20:09 andjsch

Just tried adding max-width to td and seems to be working? https://jsfiddle.net/pazp2mb9/6/

aamirafridi avatar Sep 28 '16 20:09 aamirafridi

@AndreasSchantl you can duplicated your content yourself and on the top use duplicated option which will make it 4 times :P

aamirafridi avatar Sep 28 '16 20:09 aamirafridi

@aamirafridi Yeah, thats what it seems to end up like.

Interesting solution for @NexusFred as 300px make absolutely no sense with his problem. You should add this to some sort of FAQ. How should somebody know that the plugin can't interpret percentages.

I tried pretty much the same solution but mine had width: 100%;

andjsch avatar Sep 28 '16 21:09 andjsch

I never came across this issue before. It works with divs but for table its different due to some reasons. Even if you provide width of 500px to table or td, it doesn't work. Its max-width on td that worked 👎

aamirafridi avatar Sep 28 '16 21:09 aamirafridi

@aamirafridi that a solution to have something at 100% lol For information the similar Russian version do not have this bug. So it's can be solved but with dimension issue, it's like find a bug in a Brainfuck code lol

NexusFred avatar Sep 29 '16 15:09 NexusFred