diff --git a/website/include/importerapp.css b/website/include/importerapp.css index 402a66b..84b1461 100644 --- a/website/include/importerapp.css +++ b/website/include/importerapp.css @@ -120,7 +120,8 @@ div.extbutton img div.menuitem { padding : 2px; - overflow : auto; + text-overflow: ellipsis; + overflow : hidden; } div.menugroup diff --git a/website/include/importerapp.js b/website/include/importerapp.js index 31cbdc2..b3850cb 100644 --- a/website/include/importerapp.js +++ b/website/include/importerapp.js @@ -45,7 +45,7 @@ ImporterApp.prototype.Init = function () var myThis = this; var top = document.getElementById ('top'); this.importerButtons = new ImporterButtons (top); - this.importerButtons.AddLogo ('Online 3D Viewer v 0.5.1', function () { myThis.WelcomeDialog (); }); + this.importerButtons.AddLogo ('Online 3D Viewer v 0.5.2', function () { myThis.WelcomeDialog (); }); this.importerButtons.AddButton ('images/openfile.png', 'Open File', function () { myThis.OpenFile (); }); this.importerButtons.AddButton ('images/fitinwindow.png', 'Fit In Window', function () { myThis.FitInWindow (); }); this.importerButtons.AddToggleButton ('images/fixup.png', 'images/fixupgray.png', 'Enable/Disable Fixed Up Vector', function () { myThis.SetFixUp (); }); diff --git a/website/include/importermenu.js b/website/include/importermenu.js index e04dbaf..c998672 100644 --- a/website/include/importermenu.js +++ b/website/include/importermenu.js @@ -76,7 +76,7 @@ ImporterMenuItem.prototype.Initialize = function (name) } } - var menuItemTextDiv = $('
').addClass ('menuitem').html (this.GetTruncatedName (name)).attr ('title', name).appendTo (menuItemDiv); + var menuItemTextDiv = $('
').addClass ('menuitem').html (name).attr ('title', name).appendTo (menuItemDiv); if (menuItemClickHandler != null) { menuItemTextDiv.css ('cursor', 'pointer'); menuItemTextDiv.click (menuItemClickHandler); @@ -109,15 +109,6 @@ ImporterMenuItem.prototype.OnOpenCloseClick = function () this.openCloseImage.attr ('src', this.isOpen ? 'images/opened.png' : 'images/closed.png'); }; -ImporterMenuItem.prototype.GetTruncatedName = function (name) -{ - var maxLength = 20; - if (name.length > maxLength) { - return name.substr (0, maxLength) + '...'; - } - return name; -}; - ImporterMenu = function (parentDiv) { this.parentDiv = parentDiv;