.esriBookmarkEditBox { font-size: 12px; height: 20px; position: relative; width: 180px; }
var bookmarks = new esri.dijit.Bookmarks( { map: map ,bookmarks: [] ,editable: true } ,dojo.byId(this.panel.getContentTarget().id) ); bookmarks._editBookmarkLabel = function(e){ bookmarks.constructor.prototype._editBookmarkLabel.call(bookmarks, e); var inputs = bookmarks.bookmarkDomNode.getElementsByTagName("input") if (inputs.length > 0){ inputs[0].style.left = "0px"; inputs[0].style.top = "-" + inputs[0].scrollHeight + "px"; } };
esri.dijit.Bookmarks.prototype._editBookmarkLabel = function(e){ : };
var bookmarks = new esri.dijit.Bookmarks(...); bookmarks.__proto__._editBookmarkLabel = function(e){ : };
var bookmarks = new esri.dijit.Bookmarks( { map: map ,bookmarks: [] ,editable: true } ,dojo.byId("divBookmarks") ); bookmarks._editBookmarkLabel = function(e){ // where the code of the function is essentially the same as what is already // in esri.digit.Bookmark._editBookmarkLabel, with the exception of the // style values for the INPUT DIV's creation }
var _2c = _2.position(_2b, true);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.