I have this style added when using ui360 formatter... .ui360-vis,.ui360-vis .sm2-360ui,.sm2-inline-list .ui360-vis{width:256px;height:256px; etc...

but if there are more than one player in one page... it will add one line for each one resulting in a big redundant css code.

CommentFileSizeAuthor
#4 mlutiple_ui360_styles-1427616-4.patch771 bytesandyhawks

Comments

andreas_jonsson’s picture

Priority: Normal » Major

I can confirm this issue, appearing with two or more instances of the 360 player initiated on a page.

It's line 376 in soundmanager2.module which adds the player configuration in the field settings.

      drupal_add_css('.ui360-vis, .ui360-vis .sm2-360ui, .sm2-inline-list .ui360-vis { width: ' . $settings['diameter'] . 'px; height: ' . $settings['diameter'] . 'px; } .ui360-vis .sm2-timing { line-height: ' . $settings['diameter'] . 'px; } .sm2-inline-list .ui360, .sm2-inline-block .ui360 { margin-bottom: 0; }', 'inline');

Either an unique identifier of each field instance of the payer is needed, or the player appearance settings need to be set globally for all players and not per field.

Updating this to major.

andreas_jonsson’s picture

Seemingly similar issue with the jquery colorpicker and solution: http://drupal.org/node/1355924

infines’s picture

#sm2-container {
height: 0;
overflow: hidden;
visibility: hidden;
}

I believe this is the solution. Add to the css file.

andyhawks’s picture

Status: Active » Needs review
StatusFileSize
new771 bytes

Here's gridbitlabs patch from #3. Can someone test this? Thx!

andyhawks’s picture

Status: Needs review » Closed (fixed)

patch #4 applied in latest 7.x-2.x-dev