Fix bug with indenting of in-line math when displayAlign is not 'center', and remove outdated styles example

This commit is contained in:
dpvc 2010-07-30 11:12:47 +00:00
parent ec4e0a7682
commit 5ef4eb10d0
4 changed files with 4 additions and 12 deletions

View File

@ -456,10 +456,6 @@ MathJax.Hub.Config({
//
// Example:
// styles: {
// ".MathJax_Display": {
// "text-align": "left", // left aligned displayed math
// "margin-left": "3em", // with 3em indentation
// },
// ".MathJax_Preview": {
// "font-size": "80%", // preview uses a smaller font
// color: "red" // and is in red
@ -541,7 +537,7 @@ MathJax.Hub.Config({
//
// This is the URL for the MathJax Help menu item.
//
helpURL: "http://www.mathjax.org/Help-User/",
helpURL: "http://www.mathjax.org/help/user/",
//
// These control whether the "Math Renderer", "Font Preferences",

File diff suppressed because one or more lines are too long

View File

@ -456,10 +456,6 @@ MathJax.Hub.Config({
//
// Example:
// styles: {
// ".MathJax_Display": {
// "text-align": "left", // left aligned displayed math
// "margin-left": "3em", // with 3em indentation
// },
// ".MathJax_Preview": {
// "font-size": "80%", // preview uses a smaller font
// color: "red" // and is in red

View File

@ -2009,7 +2009,7 @@
//
// Handle indentalign and indentshift for single-line display equations
//
if (!this.isMultiline && this.Get("display") && span.bbox.width == null) {
if (!this.isMultiline && this.Get("display") === "block" && span.bbox.width == null) {
var values = this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift");
if (values.indentalignfirst !== MML.INDENTALIGN.INDENTALIGN) {values.indentalign = values.indentalignfirst}
if (values.indentalign === MML.INDENTALIGN.AUTO) {values.indentalign = this.displayAlign}