diff options
Diffstat (limited to 'src/Tab.cc')
-rw-r--r-- | src/Tab.cc | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Tab.cc,v 1.18 2002/01/27 12:52:02 fluxgen Exp $ | 22 | // $Id: Tab.cc,v 1.19 2002/02/02 18:20:44 pekdon Exp $ |
23 | 23 | ||
24 | #include "Tab.hh" | 24 | #include "Tab.hh" |
25 | 25 | ||
@@ -488,15 +488,21 @@ void Tab::setPosition() { | |||
488 | m_win->getScreen()->getTabAlignment()); | 488 | m_win->getScreen()->getTabAlignment()); |
489 | break; | 489 | break; |
490 | case PLEFT: | 490 | case PLEFT: |
491 | pos_x = m_win->getXFrame() - m_size_w; | 491 | pos_x = m_win->isShaded() ? |
492 | pos_y = setPositionLRAlignHelper( | 492 | setPositionTBAlignHelper(m_win->getScreen()->getTabAlignment()) : |
493 | m_win->getScreen()->getTabAlignment()); | 493 | m_win->getXFrame() - m_size_w; |
494 | pos_y = m_win->isShaded() ? | ||
495 | setPositionShadingHelper(true) : | ||
496 | setPositionLRAlignHelper(m_win->getScreen()->getTabAlignment()); | ||
494 | break; | 497 | break; |
495 | case PRIGHT: | 498 | case PRIGHT: |
496 | pos_x = m_win->getXFrame() + m_win->getWidth() + | 499 | pos_x = m_win->isShaded() ? |
500 | setPositionTBAlignHelper(m_win->getScreen()->getTabAlignment()) : | ||
501 | m_win->getXFrame() + m_win->getWidth() + | ||
497 | m_win->getScreen()->getBorderWidth2x(); | 502 | m_win->getScreen()->getBorderWidth2x(); |
498 | pos_y = setPositionLRAlignHelper( | 503 | pos_y = m_win->isShaded() ? |
499 | m_win->getScreen()->getTabAlignment()); | 504 | setPositionShadingHelper(true) : |
505 | setPositionLRAlignHelper(m_win->getScreen()->getTabAlignment()); | ||
500 | break; | 506 | break; |
501 | default: | 507 | default: |
502 | if(m_win->isShaded()) { | 508 | if(m_win->isShaded()) { |