Jump to content

TUnimCarousel delete Page


x11

Recommended Posts

Как правильно удалить текущую страницу, на которой лежит картинка?

Процесс наполнения здесь

При удалении - ошибка: Cannot set property 'ownerCmp' of null.

Удаляю просто:

carouselPhotos.ActivePage.Free;

 

вижу здесь похожую ошибку но там 2018 год и старая версия ExtJS. Неужели до сих пор не исправили?

Link to comment
Share on other sites

2 minutes ago, x11 said:

вижу здесь похожую ошибку но там 2018 год и старая версия ExtJS. Неужели до сих пор не исправили?

Здравствуйте,

Кажется и для версии 6.6.0: 

https://forum.sencha.com/forum/showthread.php?468755-6-5-2-Removing-an-item-from-Ext-carousel-Carousel-throws-exception&p=1319894&viewfull=1#post1319894

Link to comment
Share on other sites

9 minutes ago, x11 said:

так а сейчас версия 7,0 в UniGUI

Да, я знаю.

29 minutes ago, x11 said:

Неужели до сих пор не исправили?

Возможно да, что не исправили. И возможно, что это вопрос не к UniGUI.

Мы постараемся проанализировать.

  • Like 1
Link to comment
Share on other sites

17 minutes ago, x11 said:

Я так понял, решение какое-то есть?

Попробуйте такое решение:

UnimCarousel.ClientEvents.UniEvents ->

function afterCreate(sender) 
{
    Ext.Decorator.override({
        applyComponent: function(config) {
            var result = Ext.factory(config);
            if (result) {
                result.ownerCmp = this;
            }
            return result;
        }
    });
}

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...