Re: RM2233 - Scratch pad

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: RM2233 - Scratch pad
Дата
Msg-id CA+OCxowLwmdeZBWm5Q3xSciALfovtcmcd90pcXTk-M_pWZSn7g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: RM2233 - Scratch pad  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
Список pgadmin-hackers
On Fri, Feb 15, 2019 at 1:29 PM Khushboo Vashi
<khushboo.vashi@enterprisedb.com> wrote:
>
>
>
> On Fri, Feb 15, 2019 at 6:35 PM Dave Page <dpage@pgadmin.org> wrote:
>>
>> Hi
>>
>> On Fri, Feb 15, 2019 at 11:53 AM Khushboo Vashi
>> <khushboo.vashi@enterprisedb.com> wrote:
>> >
>> > Hi Dave,
>> >
>> > On Thu, Feb 14, 2019 at 8:14 PM Dave Page <dpage@pgadmin.org> wrote:
>> >>
>> >> Here's a draft patch for adding a scratch pad to the Query Tool,
>> >> similar to what we had in pgAdmin 3.
>> >>
>> >> Aside from regular review, can one of our CSS gurus (I'm looking at
>> >> you Aditya and Khushboo :-) ) help with the following questions:
>> >>
>> >> 1) I'm currently sizing the text area height using "height: calc(100%
>> >> - 3px);" to avoid a vertical scrollbar in one of the parent divs
>> >> created by wcDocker. I'm sure there's a more elegant way of doing that
>> >> (and one that's not likely to be so fragile).
>> >>
>> > Can't we just add height: 100% instead of calc?
>>
>> No - that causes the scrollbar to appear.
>>
>> > One more way  to avoid vertical scroll-bar is  overflow-y:  hidden
>>
>> wouldn't that need to go in the div that wcDocker is creating?
>
> We can apply it on the parent-div which is  div.sql-scratch
>>
>>
>> >> 2) I've enabled the wcDocker context menu so users can show or hide
>> >> the scratch pad. The sub-menu is expanding as shown in the attached
>> >> screenshot though, however, it works fine on the main browser wcDocker
>> >> instance.
>> >>
>> > Please add  'jquery.ui', 'jqueryui.position' dependencies in sqleditor.js .
>>
>> Thanks, I'll give it a try.

Thanks - both fixes seem to work :-)

Updated patch attached.

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

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

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: pgAdmin 4 commit: Make the Query Tool tab titles more concise andusefu
Следующее
От: Dave Page
Дата:
Сообщение: Re: RM2233 - Scratch pad