Menu

#189 setBgImage has image repeat

open
nobody
5
2002-01-29
2001-11-10
Matt Fair
No

Change the setBgImage to by default not repeat the image.
Change it to:
setBgImage(image, repeat);
where repeat would be a boolean variable.

Discussion

  • Andy Short

    Andy Short - 2001-11-13

    Logged In: YES
    user_id=176079

    Hi
    I believe by setting this as default would cause problems
    to users who are already using tiled bgimages as they would
    have to alter every instance of setBgImage in their code
    and widgets causing a lot of unneeded reworking of existing
    code, also w3c specifications are that background images
    should tile unless otherwise stated, so would seem natural
    to continue this as background images have allways tiled
    (at least since ns3)

    hence this isnt a bug, its on purpose :)

    if you are not bothered about ns4 you can simply use

    if(is.ie||is.dom)
    yourobj.css.backgroundRepeat="no-repeat"

    or alternativly if you want to use a image that doesnt tile
    simply use
    yourobj.setHTML('<img src="blah.gif">')
    instead and use a nested cover layer for events

     
  • Matt Fair

    Matt Fair - 2002-01-29
    • assigned_to: mattfair --> nobody
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.