block title <none> hides whole block for IE, Opera, Safari, Chrome when Block type: Text links [1]

GiorgosK - October 16, 2009 - 13:31
Project:Text Size
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

test with Opera 10
and IE7
and no block is shown when overriding title with

meanwhile FF3.5 shows the block correctly with no title

#1

Christian Zwahlen - October 16, 2009 - 23:11

Hi GiorgosK.

Do you have set the permission "access textsize content" for "anonymous user" (on "admin/user/permissions#module-textsize")?

Tested on my site with Opera 10, Galeon 2.0.6, Safari 4.0.3.

#2

GiorgosK - October 17, 2009 - 00:02

Yes permissions are set correctly

Let me put all the latest details of this issue

1.
-----------------------------
Block type: Image links [2]
Links type: Variable links
List display: Normal
Text display: Hide text in the links [5]
Current text size display: Hide current text size
Overwrite text size in templates: No (less code) [6]

setting block title as <none>
-----------------------------
everything seems normal for all the tested browsers

2.
-----------------------------
Block type: Text links [1]
-----------------------------
will make the "text size" block dissapear for
IE7
Opera 10
Chrome 4.0
Safari 3.1

But the text size buttons can be seen from FF3.5

3.
-----------------------------
letting the "block title" empty (erasing the <none> in it)
will let "Text size" display for the misbehaving browsers above
as can be seen in the attached image
-----------------------------

marked #606414: Chrome only display the block title
as duplicate it turns out to be the same issue

AttachmentSize
test-size-empty.jpg 7.85 KB

#3

GiorgosK - October 16, 2009 - 23:57
Title:When putting block title <none> for IE, Opera the whole block dissapears» block title <none> hides whole block for IE, Opera, Safari, Chrome when Block type: Text links [1]

Should have changed title

#4

Christian Zwahlen - October 17, 2009 - 07:34

Can rebuild the error in Opera 10 if the block is in header region.

Set the list to: "inline".

This code should fix this bug

ul.textsize_inline li {
/*  display: inline; <-- delete this code and add: */
  display: block;
  float: left;
}

#5

GiorgosK - October 17, 2009 - 14:53

OK that fixes things and same code can be used for side blocks without problems

should this code be used at all times ??

#6

Christian Zwahlen - October 18, 2009 - 09:27

I am carefully with "float". First of all the settings "Display inline" for some elements in the module is for non-designer.

Yes, Garland specific code for blocks in head is:

div#header-region div.content ul.textsize_inline li {
  display: block;
  float: left;
}

#7

GiorgosK - October 17, 2009 - 17:52

You can make it a third experimental method
normal
inline
inline using float (experimental)

for use with header regions !!

#8

Christian Zwahlen - October 24, 2009 - 12:15

A non-designer can maybe not distinguish "inline" from "float". I used "li (display: inline)" because it required lesser code and obviate "float", "clear" and "block". But themes with bigger images as the text (16px) required "a ( display block}". So i can use this and fix it.

#9

Christian Zwahlen - November 17, 2009 - 20:46
Status:active» fixed

Fixed.

 
 

Drupal is a registered trademark of Dries Buytaert.