From 68cbffde0b096ec928e1c9905ff91beb6a19a9c1 Mon Sep 17 00:00:00 2001 From: trapezoid Date: Wed, 23 Apr 2008 13:16:53 +0000 Subject: lang/javascript/vimperator-plugins/trunk/twitterView.js: textbox -> label git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@10207 d0d07461-0603-4401-acd4-de1884942a52 --- twitterView.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'twitterView.js') diff --git a/twitterView.js b/twitterView.js index e9f5786..cbd27d6 100644 --- a/twitterView.js +++ b/twitterView.js @@ -1,5 +1,5 @@ // Vimperator plugin: 'Statusbar Twitter' -// Last Change: 26-Mar-2008. Jan 2008 +// Last Change: 23-Apr-2008. Jan 2008 // License: Creative Commons // Maintainer: Trapezoid - http://unsigned.g.hatena.ne.jp/Trapezoid // @@ -8,7 +8,6 @@ (function(){ var checkTime = 90 * 1000; var updateTime = 10 * 1000; - var maxWidth = '500px'; var lastestId = 0; var lastestStatus; @@ -30,9 +29,9 @@ var hbox = document.createElement('hbox'); var iconPanel = document.createElement('image'); - var statusPanel = document.createElement('textbox'); + var statusPanel = document.createElement('label'); - //hbox.style.overflow = "hidden"; + var commandline = document.getElementById('liberator-commandline'); iconPanel.setAttribute('id','statusbar-twitter-timeline-icon'); iconPanel.style.width = "16px"; @@ -40,15 +39,14 @@ statusPanel.setAttribute('id','statusbar-twitter-timeline-status'); statusPanel.setAttribute('class','plain'); - statusPanel.style.width = maxWidth; hbox.appendChild(iconPanel); hbox.appendChild(statusPanel); hbox.setAttribute('id','statusbar-twitter-timeline'); - //document.getElementById('status-bar').insertBefore(hbox,document.getElementById('statusbar-display')); - //document.getElementById('liberator-commandline').appendChild(hbox); - document.getElementById('liberator-commandline').insertBefore(hbox,document.getElementById('liberator-commandline-command')); + + commandline.style.overflow = "hidden"; + commandline.insertBefore(hbox,document.getElementById('liberator-commandline-command')); document.getElementById('liberator-commandline-command').style.textAlign = "right"; document.getElementById('liberator-commandline-command').addEventListener("focus",function(e){ -- cgit v1.2.3