GreenItSolutions / dokuwiki-plugin-switchpanel

Visual representation of the network switch schemes
13 stars 7 forks source link

Sizing with last version of dokuwiki #29

Open xylle opened 2 years ago

xylle commented 2 years ago

helo, I have some trouble with the last version of dokuwiki. with code :

~~NOCACHE~~
<switchpanel>
==text
Coloring networks
==line
1,Aa:color=red
2,B1:color=#FF61ED
3,C1:color=#9361FF
4,D1:color=#6176FF
5,E1:color=#61FCFF
6,note,FO:color=#61FF88
7:case=none
8,A2:color=#C0FF61
9,B2:color=#FFDA61
10,C2:color=red
</switchpanel>

I have image

If i change the line : $sSvg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.$iHeightSvg.'px" width="'.$iWidthSvg.'px">'. to : $sSvg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="height:'.$iHeightSvg.'px; width:'.$iWidthSvg.'px">'. I have : image

ankerstal commented 2 years ago

I have the same problem!

cjohnsonuk commented 2 years ago

I'm getting the same today running currently running DokuWiki 2022-07-31a "Igor". Date in switch plugin is 2018-11-06 Confirmed that the above fix worked for me

punk-t commented 2 years ago

Fix fixes here too :) Thx