(In reply to Alfred Peters III from comment #42)
> (In reply to alta88 from comment #41)
> 
> Is there a reason not to do it that way?

everyone should use the extension, how is Tb usable without wide thread
view ;) which was attempted and abandoned in bug 215661.

back to the issue: although the setTimeout on ReloadMessage() works,
it's not the best way and not how i do it any longer in the extension.
the document in messagepane is not destroyed and therefore does not need
to be reloaded/reread.  if you install the extension in Tb52 you will
note how smooth and jank free the layout changes are.

to do this correctly here, try this in place of the ReloadMessage() line
and make sure to test both single and multimessage (conversations):

// For some layout changes, the doc in messagepane or multimessage is
// not destroyed, so don't create it again.
let browser = getBrowser();
if (browser && browser.contentDocument &&
    browser.contentDocument.URL == "about:blank") {
  if (!gMessageDisplay.singleMessageDisplay)
    gSummaryFrameManager.pendingOrLoadedUrl = "about:blank";

  gMessageDisplay.makeInactive();
  setTimeout(() => {gFolderDisplay.makeActive();});
}

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/397574

Title:
  Encoding problems after switching the layout

Status in Mozilla Thunderbird:
  Fix Released
Status in thunderbird package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: thunderbird

  steps to reproduce:
  - View -> Layout -> Classic View
  - View -> Layout -> enable Message Pane
  - select a message in which you can see special characters (e.g. ö,ä,ü...)
  - switch the layout, e.g. View -> Layout -> Wide View

  now you can see, that the special characters are displayed wrong (e.g.
  ö instead of ö)

  If you select another mail and select this mail again, the characters
  are displayed without problems!

  I think there is a problem with the encoding after switching the
  layout

  Regards
  scamp

  ProblemType: Bug
  Architecture: amd64
  DistroRelease: Ubuntu 9.04
  Package: mozilla-thunderbird 2.0.0.21+nobinonly-0ubuntu1.9.04.1
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: thunderbird
  Uname: Linux 2.6.28-11-generic x86_64

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/397574/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to