2010-11-22 7 views
0

Si vous exécutez cet exemple Xul simple, vous pouvez voir que lorsque vous faites défiler le dernier bouton (3 °) vers le premier, avec la touche tabulation, le bouton du milieu disparaît. Une idée pourquoi? Et comment réparer?Xul Bouton de défilement disparaissant

(pour l'exécuter, vous aurez besoin de mettre une image .png nommé "img.png" au dossier de contenu)

test.xul

<?xml-stylesheet href="chrome://test/content/test.css" type="text/css"?> 

<window id="desktop" title="test" width="1280" height="720" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 

    <scrollbox> 
     <button image="chrome://test/content/img.png" /> 
     <button image="chrome://test/content/img.png" /> 
     <button image="chrome://test/content/img.png" /> 
    </scrollbox> 

</window> 

test.css

#desktop { 
    border-style:solid; 
    border-color:transparent; 
    border-width:50px; 
} 

button { 
    position: absolute; 
    -moz-appearance: none; 
    border: none; 
    background: url(""); /* nothing */ 
    width: 128px; 
    height: 128px; 
    z-index: 1; 
} 

button image { 
    width: 64px; 
    height: 64px; 
} 

button:focus image { 
    width: 128px; 
    height: 128px; 
} 

scrollbox { 
    background-color: #555555; 
} 

Répondre

0

Insertion résolue la boîte de défilement à l'intérieur d'une boîte et la définition de la couleur d'arrière-plan du défilement dans la boîte.