Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4e940c56

Von Sven Schöling vor fast 13 Jahren hinzugefügt

Javascriptmenü nicht nach rechts aus dem Bildschirm fallen lassen.

Unterschiede anzeigen:

js/dhtmlsuite/menu-for-applications.js
2227 2227
				shortRef.style.left = DHTMLSuite.commonObj.getLeftPos(this.menuItem_objects[parentId].divElement) + 'px';
2228 2228
				shortRef.style.top = (DHTMLSuite.commonObj.getTopPos(this.menuItem_objects[parentId].divElement) + this.menuItem_objects[parentId].divElement.offsetHeight) + 'px';
2229 2229
			}else{
2230
              var too_large = DHTMLSuite.commonObj.getLeftPos(this.menuItem_objects[parentId].divElement)
2231
                            + this.menuItem_objects[parentId].divElement.offsetWidth
2232
                            + shortRef.offsetWidth
2233
                            > $('#main_menu_div').width();
2234
              if (too_large)
2235
                shortRef.style.left = (DHTMLSuite.commonObj.getLeftPos(this.menuItem_objects[parentId].divElement) - shortRef.offsetWidth) + 'px';
2236
              else
2230 2237
				shortRef.style.left = (DHTMLSuite.commonObj.getLeftPos(this.menuItem_objects[parentId].divElement) + this.menuItem_objects[parentId].divElement.offsetWidth) + 'px';
2231 2238
				shortRef.style.top = (DHTMLSuite.commonObj.getTopPos(this.menuItem_objects[parentId].divElement)) + 'px';		
2232 2239
			}	

Auch abrufbar als: Unified diff