temporary fix for Chrome CSS bug

This commit is contained in:
rlx 2013-05-08 14:48:07 +00:00
parent e9668823e3
commit 9d802dbf49

View file

@ -69,6 +69,9 @@ def build_oxjs(downloads=False, geo=False):
svg = read_file(path + filename) svg = read_file(path + filename)
svg = re.sub('\n\s*', '', svg) svg = re.sub('\n\s*', '', svg)
svg = re.sub('<!--.+?-->', '', svg) svg = re.sub('<!--.+?-->', '', svg)
# temporary fix for Chrome SVG bug, remove later!
svg = re.sub('width="256" height="256"', 'width="10" height="10" viewBox="0 0 255 255"', svg)
# end fix
ui_images[filename[:-4]] = svg ui_images[filename[:-4]] = svg
if filename.startswith('symbolLoading'): if filename.startswith('symbolLoading'):
for theme in themes: for theme in themes: