YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2526042 (checkedin defect)

Reporter


mingfai
Opened: 03/5/09
Last modified: 02/5/10
Status: checkedin
Type: defect
Resolution: fixed

Owner


Satyen Desai
Target Release: 3.1.0
Priority: P3 (normal)
Summary: undefined-height overlay with bodyContent is not correctly centered
Description:
say, for a overlay with the following attributes:
{

centered:true,width:'600px',visible:true, bodyContent:'<p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p><p>11</p><p>12</p>'
}

it is not really centered. it uses the zero as height to calculate the center position.

if a height is specified, there is no problem.

ideally, if the any of the hd, bd, and ft are heightened, the center spot shall be dyanmically adjusted

Type: defect Observed in Version: 3.0.0 PR2
Component: Overlay Severity: S3 (normal)
Assigned To: Satyen Desai Target Release: 3.1.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: All
URL:
Test Information:

Change History

mingfai

Posted: 03/5/09
  • summary changed from no height overlay with bodyContent is not correctly centered to undefined-height overlay with bodyContent is not correctly centered

Satyen Desai

YUI Developer

Posted: 03/5/09
  • milestone changed to 3.NEXT
  • status changed from new to accepted

Satyen Desai

YUI Developer

Posted: 06/30/09
  • milestone changed from 3.NEXT to 3.1.0

Satyen Desai

YUI Developer

Posted: 02/5/10
  • resolution changed to fixed
  • status changed from accepted to checkedin

Fixed overlay height/centering order. Fixes #2526042
View Commit: