Thread: Text goes out of header area in html reports

Text goes out of header area in html reports

From
Dhiraj Chawla
Date:
Hi,

We have found that if the name of a database is too long (max limit allowed for a database name) and when we generate the reports (properties, dependencies, etc) for such databases, then the name of database in the header goes out of the header area. Attached is a snapshot of such a case. This is reproducible in case when the width of the browser in which you open the report is smaller than expected.

I am attaching with this email a patch that fixes this issue. In this the patch what I have done is fixed the min-width of the header area so that the width of header area doesn't decrease when the width of the browser is reduced.

Let me know your feedback on this.

regards,

Dhiraj Chawla
Senior Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

Phone: +91-20-30589522
Attachment

Re: Text goes out of header area in html reports

From
Dave Page
Date:
Hi

On Wed, Dec 4, 2013 at 9:08 AM, Dhiraj Chawla
<dhiraj.chawla@enterprisedb.com> wrote:
> Hi,
>
> We have found that if the name of a database is too long (max limit allowed
> for a database name) and when we generate the reports (properties,
> dependencies, etc) for such databases, then the name of database in the
> header goes out of the header area. Attached is a snapshot of such a case.
> This is reproducible in case when the width of the browser in which you open
> the report is smaller than expected.
>
> I am attaching with this email a patch that fixes this issue. In this the
> patch what I have done is fixed the min-width of the header area so that the
> width of header area doesn't decrease when the width of the browser is
> reduced.
>
> Let me know your feedback on this.

I'm not sure I like the idea of setting the header to a minimum width
- that could mess up the display for people who want to narrow it and
have reasonable length names. Could we just use
"text-overflow:ellipsis;"?


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Re: Text goes out of header area in html reports

From
Dhiraj Chawla
Date:
Hi Dave,

Attached is the modified patch in which I have implemented using "text-overflow: ellipsis;" as per your suggestion. Along with text-overflow: ellipsis I also had to use overflow: hidden to achieve the correct fix.

Let me know your feedback on the attached patch.


regards,

Dhiraj Chawla
Senior Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

Phone: +91-20-30589522


On Thu, Dec 5, 2013 at 9:02 PM, Dave Page <dpage@pgadmin.org> wrote:
Hi

On Wed, Dec 4, 2013 at 9:08 AM, Dhiraj Chawla
<dhiraj.chawla@enterprisedb.com> wrote:
> Hi,
>
> We have found that if the name of a database is too long (max limit allowed
> for a database name) and when we generate the reports (properties,
> dependencies, etc) for such databases, then the name of database in the
> header goes out of the header area. Attached is a snapshot of such a case.
> This is reproducible in case when the width of the browser in which you open
> the report is smaller than expected.
>
> I am attaching with this email a patch that fixes this issue. In this the
> patch what I have done is fixed the min-width of the header area so that the
> width of header area doesn't decrease when the width of the browser is
> reduced.
>
> Let me know your feedback on this.

I'm not sure I like the idea of setting the header to a minimum width
- that could mess up the display for people who want to narrow it and
have reasonable length names. Could we just use
"text-overflow:ellipsis;"?


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

Re: Text goes out of header area in html reports

From
Dave Page
Date:
Thanks, applied.

On Fri, Dec 6, 2013 at 9:44 AM, Dhiraj Chawla
<dhiraj.chawla@enterprisedb.com> wrote:
> Hi Dave,
>
> Attached is the modified patch in which I have implemented using
> "text-overflow: ellipsis;" as per your suggestion. Along with text-overflow:
> ellipsis I also had to use overflow: hidden to achieve the correct fix.
>
> Let me know your feedback on the attached patch.
>
>
> regards,
>
> Dhiraj Chawla
> Senior Software Engineer
> EnterpriseDB Corporation
> The Enterprise PostgreSQL Company
>
> Phone: +91-20-30589522
>
>
> On Thu, Dec 5, 2013 at 9:02 PM, Dave Page <dpage@pgadmin.org> wrote:
>>
>> Hi
>>
>> On Wed, Dec 4, 2013 at 9:08 AM, Dhiraj Chawla
>> <dhiraj.chawla@enterprisedb.com> wrote:
>> > Hi,
>> >
>> > We have found that if the name of a database is too long (max limit
>> > allowed
>> > for a database name) and when we generate the reports (properties,
>> > dependencies, etc) for such databases, then the name of database in the
>> > header goes out of the header area. Attached is a snapshot of such a
>> > case.
>> > This is reproducible in case when the width of the browser in which you
>> > open
>> > the report is smaller than expected.
>> >
>> > I am attaching with this email a patch that fixes this issue. In this
>> > the
>> > patch what I have done is fixed the min-width of the header area so that
>> > the
>> > width of header area doesn't decrease when the width of the browser is
>> > reduced.
>> >
>> > Let me know your feedback on this.
>>
>> I'm not sure I like the idea of setting the header to a minimum width
>> - that could mess up the display for people who want to narrow it and
>> have reasonable length names. Could we just use
>> "text-overflow:ellipsis;"?
>>
>>
>> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Re: Text goes out of header area in html reports

From
Dhiraj Chawla
Date:
Thanks a lot Dave.

regards,

Dhiraj Chawla
Senior Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

Phone: +91-20-30589522


On Fri, Dec 6, 2013 at 10:02 PM, Dave Page <dpage@pgadmin.org> wrote:
Thanks, applied.

On Fri, Dec 6, 2013 at 9:44 AM, Dhiraj Chawla
<dhiraj.chawla@enterprisedb.com> wrote:
> Hi Dave,
>
> Attached is the modified patch in which I have implemented using
> "text-overflow: ellipsis;" as per your suggestion. Along with text-overflow:
> ellipsis I also had to use overflow: hidden to achieve the correct fix.
>
> Let me know your feedback on the attached patch.
>
>
> regards,
>
> Dhiraj Chawla
> Senior Software Engineer
> EnterpriseDB Corporation
> The Enterprise PostgreSQL Company
>
> Phone: +91-20-30589522
>
>
> On Thu, Dec 5, 2013 at 9:02 PM, Dave Page <dpage@pgadmin.org> wrote:
>>
>> Hi
>>
>> On Wed, Dec 4, 2013 at 9:08 AM, Dhiraj Chawla
>> <dhiraj.chawla@enterprisedb.com> wrote:
>> > Hi,
>> >
>> > We have found that if the name of a database is too long (max limit
>> > allowed
>> > for a database name) and when we generate the reports (properties,
>> > dependencies, etc) for such databases, then the name of database in the
>> > header goes out of the header area. Attached is a snapshot of such a
>> > case.
>> > This is reproducible in case when the width of the browser in which you
>> > open
>> > the report is smaller than expected.
>> >
>> > I am attaching with this email a patch that fixes this issue. In this
>> > the
>> > patch what I have done is fixed the min-width of the header area so that
>> > the
>> > width of header area doesn't decrease when the width of the browser is
>> > reduced.
>> >
>> > Let me know your feedback on this.
>>
>> I'm not sure I like the idea of setting the header to a minimum width
>> - that could mess up the display for people who want to narrow it and
>> have reasonable length names. Could we just use
>> "text-overflow:ellipsis;"?
>>
>>
>> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company